Browse Source

Merge pull request #9720 from chinpei215/json-options

Remove an invalid option for json_encode.
José Lorenzo Rodríguez 9 years ago
parent
commit
8775410474
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/View/JsonView.php

+ 1 - 1
src/View/JsonView.php

@@ -136,7 +136,7 @@ class JsonView extends SerializedView
         $data = $this->_dataToSerialize($serialize);
 
         $jsonOptions = JSON_HEX_TAG | JSON_HEX_APOS | JSON_HEX_AMP | JSON_HEX_QUOT |
-            JSON_ERROR_INF_OR_NAN | JSON_PARTIAL_OUTPUT_ON_ERROR;
+            JSON_PARTIAL_OUTPUT_ON_ERROR;
 
         if (isset($this->viewVars['_jsonOptions'])) {
             if ($this->viewVars['_jsonOptions'] === false) {