id, value objects are used extensively by WebUI ESP420 so it is worthwhile to have helper routines for them.
| 279 | // id, value objects are used extensively by WebUI ESP420 so it is worthwhile |
| 280 | // to have helper routines for them. |
| 281 | void JSONencoder::id_value_object(const char* id, const char* value) { |
| 282 | begin_object(); |
| 283 | member("id", id); |
| 284 | member("value", value); |
| 285 | end_object(); |
| 286 | } |
| 287 | |
| 288 | void JSONencoder::id_value_object(const char* id, const std::string& value) { |
| 289 | id_value_object(id, value.c_str()); |
no test coverage detected