* Assert that the given JSON object or JSON array has been properly * terminated. (Has closing bracket.) */
| 143 | * terminated. (Has closing bracket.) |
| 144 | */ |
| 145 | static void assert_is_terminated(const struct json_writer *jw) |
| 146 | { |
| 147 | if (jw->open_stack.len) |
| 148 | BUG("json-writer: object: missing jw_end(): '%s'", |
| 149 | jw->json.buf); |
| 150 | } |
| 151 | |
| 152 | void jw_object_begin(struct json_writer *jw, int pretty) |
| 153 | { |
no outgoing calls
no test coverage detected