Add checks for json_type_to_name