| 94 | /// Simplifed JSON map encoder for array items |
| 95 | template<typename T> |
| 96 | void OutItem(IOutputStream& out, const T& value, bool escape = true) { |
| 97 | TString quoted = ToString(value); |
| 98 | if (escape) { |
| 99 | quoted = JsonQuote(quoted); |
| 100 | } |
| 101 | out << quoted << ",\n"; |
| 102 | } |
| 103 | |
| 104 | /// Cut trailing ",\n" or "," |
| 105 | static inline void FinishItems(TStringStream& out) { |
no test coverage detected