| 344 | |
| 345 | template <typename SeqType> |
| 346 | SeqType DecodeSequenceData(const json::Array& data) { |
| 347 | SeqType sequence; |
| 348 | sequence.reserve(static_cast<int64_t>(data.size())); |
| 349 | for (const auto& elem : data) { |
| 350 | sequence.push_back(GetOrDecodeNode(elem.cast<int64_t>())); |
| 351 | } |
| 352 | return sequence; |
| 353 | } |
| 354 | |
| 355 | template <typename MapType> |
| 356 | MapType DecodeMapLikeData(const json::Array& data) { |