From a3a6ff7571aed5c38e8e53ecc2181a08ce5ca8f4 Mon Sep 17 00:00:00 2001 From: Robert Sesek Date: Sun, 21 Aug 2011 00:29:09 -0400 Subject: [PATCH] Use JSON_NUMERIC_CHECK for json_encode() --- http/output_filter.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/http/output_filter.php b/http/output_filter.php index 5f702ac..45aba48 100644 --- a/http/output_filter.php +++ b/http/output_filter.php @@ -123,7 +123,7 @@ class OutputFilter if ($type == 'json') { $response->headers['Content-Type'] = 'application/json'; - $response->body = json_encode($response->data); + $response->body = json_encode($response->data, JSON_NUMERIC_CHECK); } else if ($type == 'xml') { $response->headers['Content-Type'] = 'application/xml'; $response->body = $this->_EncodeXML($response->data); -- 2.43.5