In the Current code i'm using json-c. i'm migrating to jansson. need an equivalent api in jansson which converts the json_object_to_json_string. i found one but it needs a json string object otherwise it is returning null.
const char *json_string_value(const json_t *string) - not working
but my input is a JSON
object not a JSON
string
sample:
json_object *jobj = json_object_new_object();
....
const char *final_string = json_object_to_json_string(jobj);
Thanks.