mirror of
https://github.com/ivabus/pantry
synced 2024-12-01 20:45:10 +03:00
9 lines
270 B
C
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;
|
|
}
|