static void convert_array(const json_array& value, string& path, datum& ret_datum) { size_t len = path.size(); for (size_t i = 0; i < value.size(); ++i) { ostringstream oss; oss << "[" << i << "]"; path += oss.str(); iter_convert(value[i], path, ret_datum); path.resize(len); } }
bool operator==(const json_array<Char,Storage>& rhs) const { if (size() != rhs.size()) { return false; } for (size_t i = 0; i < size(); ++i) { if (elements_[i] != rhs.elements_[i]) { return false; } } return true; }