Finishes the JSON encoding process, closing the unnamed object and returning the encoded string
| 174 | // Finishes the JSON encoding process, closing the unnamed object |
| 175 | // and returning the encoded string |
| 176 | void JSONencoder::end() { |
| 177 | end_object(); |
| 178 | line(); |
| 179 | flush(); |
| 180 | if (_channel && _json_tag) { |
| 181 | _channel->endJSON(_json_tag); |
| 182 | } |
| 183 | } |
| 184 | |
| 185 | // Starts a member element. |
| 186 | void JSONencoder::begin_member(const char* tag) { |