| 87 | } |
| 88 | |
| 89 | void arrayToJSON(const MetadataNodeList& children, std::ostream& o, int level) |
| 90 | { |
| 91 | const std::string indent(level * 2, ' '); |
| 92 | |
| 93 | o << indent << "[" << std::endl; |
| 94 | for (auto ci = children.begin(); ci != children.end(); ++ci) |
| 95 | { |
| 96 | const MetadataNode& m = *ci; |
| 97 | |
| 98 | arrayEltToJSON(m, o, level + 1); |
| 99 | if (ci != children.rbegin().base() - 1) |
| 100 | o << ","; |
| 101 | o << std::endl; |
| 102 | } |
| 103 | o << indent << "]"; |
| 104 | } |
| 105 | |
| 106 | void arrayEltToJSON(const MetadataNode& m, std::ostream& o, int level) |
| 107 | { |
no test coverage detected