Source Code File 09-01_jsonctest

09-01_jsonctest.c

#include <stdio.h>
#include <json-c/json.h>

int main()
{
    printf("json-c version %s\n",JSON_C_VERSION);

    return(0);
}

Output

json-c version 0.13.1

Notes

* Ensure you link the json-c library when you compile. The code doesn't use any library functions, but by linking the library you test its installation as well.

* The library version number output may be different from what's shown above.