Add test code for C using json-c