JSON
JSON
The structured data management class.
serialize(integer $format = self::JSON) : string
Serialize the current data collection.
integer | $format | an integer representing one of the allowed formats |
the serialization format is invalid
the error occurred while serializing the collection in json format
the collection serialized
deserialize(string|array|\Gishiki\Algorithms\Collections\CollectionInterface $message, integer $format = self::JSON) : \Gishiki\Algorithms\Collections\SerializableCollection
Deserialize the given data collection and create a serializable data collection.
string|array|\Gishiki\Algorithms\Collections\CollectionInterface | $message | the string containing the serialized data or the array of data |
integer | $format | an integer representing one of the allowed formats |
the error preventing the data deserialization
the deserialization result