Switch_to_json_api