| 131 | |
| 132 | template <typename T> |
| 133 | TString ToJsonStr(const THashMap<TString, THistogram<T>>& hists, const TVector<double>& percentiles, bool format = true) { |
| 134 | NJson::TJsonValue json = ToJson(hists, percentiles); |
| 135 | |
| 136 | NJsonWriter::TBuf buf; |
| 137 | if (format) { |
| 138 | buf.SetIndentSpaces(4); |
| 139 | } |
| 140 | |
| 141 | return buf.WriteJsonValue(&json, true).Str(); |
| 142 | } |
| 143 | |
| 144 | } |
nothing calls this directly
no test coverage detected