refer to the json-c repository