Better version compare
Move white list into class.json-api-endpoints.php because it only pertains to the JSON API