Java Object to JSON

JavaScript Object Notation (aka JSON) is a very popular alternative to XML for transmitting data to the web browser. Flexjson is a lightweight library for serializing and deserializing Java objects into and from JSON.
It allows you to make shallow and deep copies of objects.

Site and Download Link : http://flexjson.sourceforge.net/

Serialize – Object to JSON

Be sure to provide setters and getters for your objects.

Deserialize – JSON to Object

Why use it?

For example if you want to send objects over TCP sockets its much easier to handle strings rather than object streams, other than that it can be useful for web applications that use json format.

Check out the site for more of its functions.


Recent Posts

Recent Comments

Categories