X-Git-Url: https://git.ozlabs.org/?p=ccan;a=blobdiff_plain;f=ccan%2Fjson_out%2Fjson_out.h;fp=ccan%2Fjson_out%2Fjson_out.h;h=da8b4ffa706206596553c391bc9c608cfcb72b6d;hp=2911ff2473bac5cd029eff02558c4fe6ef48bb37;hb=b45a3266352be0da51c532c8dc462e67e5830877;hpb=b97c7f0841f5173a07a2571f2c99f944d8405a90 diff --git a/ccan/json_out/json_out.h b/ccan/json_out/json_out.h index 2911ff24..da8b4ffa 100644 --- a/ccan/json_out/json_out.h +++ b/ccan/json_out/json_out.h @@ -177,9 +177,12 @@ bool json_out_add_splice(struct json_out *jout, * @jout: the json_out object written to. * * This simply causes internal assertions that all arrays and objects are - * finished. It needs CCAN_JSON_OUT_DEBUG defined to have any effect. + * finished. If CCAN_JSON_OUT_DEBUG is defined, it does sanity checks. + * + * This also resets the empty flag, so there will be no comma added if + * another JSON object is written. */ -void json_out_finished(const struct json_out *jout); +void json_out_finished(struct json_out *jout); /** * json_out_contents - read contents from json_out stream.