mirror of
https://github.com/ivabus/pantry
synced 2024-11-25 18:05:07 +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;
|
||
|
}
|