diff options
| author | Teddy Wing | 2013-05-20 22:41:46 -0400 |
|---|---|---|
| committer | Teddy Wing | 2013-05-20 22:41:46 -0400 |
| commit | 02a5e52d982404f03a0e484b14a1565fd2feb2ce (patch) | |
| tree | 70dceeddb76da5badc926469352bccd7c528eb2f /http.php | |
| parent | 06ffae720056f446af6a5f4803b58bf9a859d73a (diff) | |
| download | Boston-Food-Truck-Schedule-API-02a5e52d982404f03a0e484b14a1565fd2feb2ce.tar.bz2 | |
Change the way JSON encoding is handled
Don't JSON-encode output from the BostonFoodTrucks class and instead
return as a regular PHP object. Do the JSON-encoding directly in the
HTTP API.
Diffstat (limited to 'http.php')
| -rw-r--r-- | http.php | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -52,4 +52,4 @@ $Filters->get_filters($R->parameters); // Output JSON from food truck API $BostonFoodTrucks = new BostonFoodTrucks; -echo $BostonFoodTrucks->schedule($Filters->filters); +echo json_encode($BostonFoodTrucks->schedule($Filters->filters)); |
