Converts the JSON string to an array.
It is a wrapper over the system function json_decode. It is introduced to give the ability to overwrite the system function if necessary.
| Name | Pass type | Value type | Default value | Description |
|---|---|---|---|---|
| $json | by reference | string |
Input JSON string. |
|
| $array | by reference | array |
target array. |
It might throw the exception if the JSON cannot be parsed.