JRegistryFormatJSON::stringToObject
Parse a JSON formatted string and convert it into an object.
If the string is not in JSON format, this method will attempt to parse it as INI format.
Signature
public function stringToObject(string
$data,
array
$optionsĀ )
Parameters
-
$data
- JSON formatted string to convert.
-
$options
- Options used by the formatter.
Returns
- Data object.