Serializing to JSON in jQuery [duplicate]

JSON-js – JSON in JavaScript. To convert an object to a string, use JSON.stringify: var json_text = JSON.stringify(your_object, null, 2); To convert a JSON string to object, use JSON.parse: var your_object = JSON.parse(json_text); It was recently recommended by John Resig: …PLEASE start migrating your JSON-using applications over to Crockford’s json2.js. It is fully compatible with … Read more

What is a serialVersionUID and why should I use it?

The docs for java.io.Serializable are probably about as good an explanation as you’ll get: The serialization runtime associates with each serializable class a version number, called a serialVersionUID, which is used during deserialization to verify that the sender and receiver of a serialized object have loaded classes for that object that are compatible with respect … Read more