It is the process of transforming object or data structure into a format that can be stored and revive in the same or different environment.
The
serialization is used to convert the object into byte of stream that can be
stored into memory (database or file) or shared over the network in a web
service call and to stores the state of the object so that it can be recreate
the original form of the object. In general, we have come across the stuff like
cookies. Conceptually serialized object is similar to cookies since cookies
also can be stored anywhere or shared over network.
The
web service and Ajax are two general example of serialization. Here before
sending the data over the network, we used to serialize the data.
XML format sample
JSON
format sample
No comments:
Post a Comment