switched from json.php view to Flight's nativ e::json() method in API