XOOPS
2.6.0
|
Static Public Member Functions | |
static | format ($json, $unescapeUnicode, $unescapeSlashes) |
Formats json strings used for php < 5.4 because the json_encode doesn't supports the flags JSON_UNESCAPED_SLASHES | JSON_PRETTY_PRINT | JSON_UNESCAPED_UNICODE in these versions
Definition at line 24 of file JsonFormatter.php.
|
static |
This code is based on the function found at: http://recursive-design.com/blog/2008/03/11/format-json-with-php/
Originally licensed under MIT by Dave Perrett mail@ recu rsive -des ign.c om
string | $json | |
bool | $unescapeUnicode | Un escape unicode |
bool | $unescapeSlashes | Un escape slashes |
Definition at line 39 of file JsonFormatter.php.