added json-c wrapper