json-c implements a reference counting object model that allows you to easily construct JSON objects in C.