Java JSON tutorials
Comments (0)
JSON (JavaScript Object Notation) is a lightweight data-text format. It's easy for humans to read or write. And even easier for machines to read/parse or create. JSON is completely language independent. Which means that every programming language can use JSON. Couple of reasons that you should prefer using JSON over XML is: ul liJSON is smaller than a href="http://camelcode.org/overview/Java-XML-tutorials.htm"XML/a/li liJSON is easier than a href="http://camelcode.org/overview/Java-XML-tutorials.htm"XML/a/li liJSON is faster than a href="http://camelcode.org/overview/Java-XML-tutorials.htm"XML/a/li liJSON doesn't need to be validated/li /ul
Google Gson
Gson is a Java library that can be used to convert Java Objects into their JSON representation. It can also be used to convert a JSON string to an equivalent Java object. Gson can work with arbitrary Java objects including pre-existing objects that you do not have source-code of.
Exclude fields from JSON using Gson with @Expose
How to exclude fields for Serialization/Desirialization with @Expose
Custom JSON field naming with Gson
Give your JSON fields custom naming
Write json file using GSON
How to write an Object to JSON using GSON
Read json file with GSON
How to parse json with Google GSON
Serialize Object with null values using GSON
How to serialize null values using Gson.
Pretty printing JSON String with Gson
How to print your JSON String pretty
Exclude fields from JSON with java modifiers using Gson
how to exclude fields with java modifiers
JSONSerializer examples
JSONSerializer can transform any java object to JSON notation and back with a simple and clean interface, leveraging all the builders in JSONObject and JSONArray.
From JSON to XML
How to convert JSON String to XML
From Java to JSON
How to convert Java to Json string
From JSON to Java
How to a JSON String to Java Objects
From XML to JSON
How to convert XML to a JSON Object





Latest Posts
Latest Comments
Tag cloud