some json stuff; json_free not implemented