| 121 | } |
| 122 | |
| 123 | std::string node::dump_array() const |
| 124 | { |
| 125 | const auto& vector = std::get<array>(m_data); |
| 126 | std::string dump_value = "["; |
| 127 | for (auto it = vector.begin(); it != vector.end(); ++it) |
| 128 | { |
| 129 | dump_value += it->dump() + (it != (vector.end() - 1) ? ", " : ""); |
| 130 | } |
| 131 | dump_value += "]"; |
| 132 | return dump_value; |
| 133 | } |
| 134 | |
| 135 | std::string node::dump_object(bool root) const |
| 136 | { |