pantry/projects/github.com/json-c/json-c/fixture.c
2022-11-25 08:13:12 -05:00

9 lines
270 B
C

#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;
}