mirror of
https://github.com/ivabus/pantry
synced 2024-11-29 19:55:06 +03:00
1a0a2f104c
* first attempt * use gcc on linux --------- Co-authored-by: Max Howell <mxcl@me.com>
11 lines
No EOL
223 B
C
11 lines
No EOL
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;
|
|
} |