Fix typos in jsonapi.php