| 66 | /// Simplifed JSON map encoder for generic types |
| 67 | template<typename T> |
| 68 | void OutKey(IOutputStream& out, const TString& key, const T& value, bool escape = true) { |
| 69 | TString quoted = ToString(value); |
| 70 | if (escape) { |
| 71 | quoted = JsonQuote(quoted); |
| 72 | } |
| 73 | out << "\"" << key << "\": " << quoted << ",\n"; |
| 74 | } |
| 75 | |
| 76 | /// Simplifed JSON map encoder for TMaybe |
| 77 | void OutKey(IOutputStream& out, const TString& key, const TMaybe<TString>& value) { |
no test coverage detected