aboutsummaryrefslogtreecommitdiffstats
path: root/http.php
diff options
context:
space:
mode:
authorTeddy Wing2013-05-20 22:41:46 -0400
committerTeddy Wing2013-05-20 22:41:46 -0400
commit02a5e52d982404f03a0e484b14a1565fd2feb2ce (patch)
tree70dceeddb76da5badc926469352bccd7c528eb2f /http.php
parent06ffae720056f446af6a5f4803b58bf9a859d73a (diff)
downloadBoston-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.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/http.php b/http.php
index 7c8abe6..ddea68f 100644
--- a/http.php
+++ b/http.php
@@ -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));