php - what is Deserialize & Serialize in JSON, -


i'm new in json, need use json flash actionscript 3.0. found 1 lib json , have seen terms deserialize & serialize means.

json format encodes objects in string. serialization means convert object string, , deserialization inverse operation.

when transmitting data or storing them in file, data required byte strings, complex objects seldom in format. serialization can convert these complex objects byte strings such use. after byte strings transmitted, receiver have recover original object byte string. known deserialization.

say, have object

{foo: [1, 4, 7, 10], bar: "baz"} 

serializing json convert string:

'{"foo":[1,4,7,10],"bar":"baz"}' 

which can stored or sent through wire anywhere. receiver can deserialize string original object. {foo: [1, 4, 7, 10], bar: "baz"}.


Comments

Popular posts from this blog

windows - Why does Vista not allow creation of shortcuts to "Programs" on a NonAdmin account? Not supposed to install apps from NonAdmin account? -

c++ - How do I get a multi line tooltip in MFC -

unit testing - How to mock PreferenceManager in Android? -