class JSONSerializer extends AbstractSerializer

Class JSONSerializer

Methods

prepareFile( SplFileObject $fileObject)

Prepare file to receive serialized data

null|string
separator()

Get string that separate serialized data

finalizeFile( SplFileObject $fileObject)

Finalize file with serialized data

string
getId()

Get serializer identifier

string
getName()

Get serializer name

string
getExtension()

Get serializer extension

string
getMimeType()

Get serializer mime type

string
serialize( mixed $data)

Serialize data

array
unserialize( SplFileObject $fileObject)

Unserialize data

Details

at line 43
prepareFile( SplFileObject $fileObject)

Prepare file to receive serialized data

Parameters

SplFileObject $fileObject A file object

at line 53
null|string separator()

Get string that separate serialized data

Return Value

null|string Wrap separator string

at line 58
finalizeFile( SplFileObject $fileObject)

Finalize file with serialized data

Parameters

SplFileObject $fileObject A file object

at line 23
string getId()

Get serializer identifier

Return Value

string The serializer identifier

at line 28
string getName()

Get serializer name

Return Value

string The serializer name

at line 33
string getExtension()

Get serializer extension

Return Value

string The serializer extension

at line 38
string getMimeType()

Get serializer mime type

Return Value

string The serializer mime type

at line 48
string serialize( mixed $data)

Serialize data

Parameters

mixed $data Data to serialize

Return Value

string Serialized data

at line 63
array unserialize( SplFileObject $fileObject)

Unserialize data

Parameters

SplFileObject $fileObject A file object

Return Value

array Unserialized data