pantry/projects/github.com/json-c/json-c/fixture.c

10 lines
270 B
C
Raw Normal View History

2022-11-25 16:02:51 +03:00
#include <stdio.h>
#include <json-c/json.h>
int main() {
json_object *obj = json_object_new_object();
json_object *value = json_object_new_string("value");
json_object_object_add(obj, "key", value);
printf("%s\n", json_object_to_json_string(obj));
return 0;
}