use json-c library