Fix get_json_key function2