| 26 | template <typename T, typename E> |
| 27 | struct TDefaultArrayEncoder { |
| 28 | static TJsonValue Encode(const T& value) { |
| 29 | TJsonValue result(NJson::JSON_ARRAY); |
| 30 | auto& encodedArray = result.GetArraySafe(); |
| 31 | for (const auto& element : value) { |
| 32 | encodedArray.push_back(TConverter<E>::Encode(element)); |
| 33 | } |
| 34 | return result; |
| 35 | } |
| 36 | }; |
| 37 | |
| 38 | template <typename T, typename E> |