json_pack cleanup