JDataSet::jsonSerialize
Gets the data set in a form that can be serialised to JSON format.
Note that this method will not return an associative array, otherwise it would be encoded into an object. JSON decoders do not consistently maintain the order of associative keys, whereas they do maintain the order of arrays.
Signature
public function jsonSerialize([mixed
$serialized = null] )
Parameters
-
$serialized
- An array of objects that have already been serialized that is used to infinite loops
Returns
- array
- An array that can be serialised by json_encode().