mirror of
https://github.com/ivabus/pantry
synced 2024-11-14 04:25:08 +03:00
11 lines
223 B
C
11 lines
223 B
C
|
#include <jansson.h>
|
||
|
#include <assert.h>
|
||
|
int main()
|
||
|
{
|
||
|
json_t *json;
|
||
|
json_error_t error;
|
||
|
json = json_loads("\"foo\"", JSON_DECODE_ANY, &error);
|
||
|
assert(json && json_is_string(json));
|
||
|
json_decref(json);
|
||
|
return 0;
|
||
|
}
|