| 107 | } |
| 108 | |
| 109 | void JSONWriter::start(bool isContainer) { |
| 110 | |
| 111 | // remove the last ']' |
| 112 | if (_layers == 0) |
| 113 | packet.clear(packet.size() - 1); |
| 114 | |
| 115 | |
| 116 | if(!_first) |
| 117 | packet.write8(','); |
| 118 | |
| 119 | if (isContainer) { |
| 120 | _first=true; |
| 121 | ++_layers; |
| 122 | } |
| 123 | } |
| 124 | |
| 125 | void JSONWriter::end(bool isContainer) { |
| 126 |