object which encode or decode a php variable to or from JSON
| package |
jelix |
|---|---|
| subpackage |
utils |
decode(string $str) : mixed
stringJSON-formatted string
mixednumber, boolean, string, array, or object corresponding to given JSON input string. Note that decode() always returns strings in ASCII or UTF-8 format!
encode(mixed $var) : mixed
mixedany number, boolean, string, array, or object to be encoded. if var is a string, note that encode() always expects it to be in ASCII or UTF-8 format!
mixedJSON string representation of input var or an error if a problem occurs
jJSON(integer $use)
integerobject behavior flags; combine with boolean-OR possible values:
use :