JSON (JavaScript Object Notation) is a simple, lightweight and easy to read and write data exchange formats. In Java, normally we use Jackson, Gson, JSON-P or JSON.simple popular libraries to parse JSON in Java.
1. Jackson
Jackson is a very popular and efficient Java-based library to serialize or map Java objects to JSON and vice versa. This tutorial contains a large number of articles/posts which demonstrates the basic and advanced Jackson library API features and their usage with lots of examples.
- Change Field Name in JSON using Jackson (popular)
- ObjectMapper - Java to JSON (popular)
- ObjectMapper - JSON to Java Object (popular)
- Convert List to JSON Array Using Jackson (popular)
- Convert Set to JSON Array Using Jackson (popular)
- Jackson - Convert Map to JSON Object (popular)
- Jackson – Convert JSON string to Map (popular)
The source code of these examples and tutorials available on my GitHub repository at https://github.com/RameshMF/jackson-json-tutorial
2. GSON
Gson is a Java library that can be used to convert Java Objects into their JSON representation and vice-versa.
Below are GSON examples:
The source code of these examples and articles are available on my GitHub repository at https://github.com/RameshMF/gson-tutorial
Comments
Post a Comment
Leave Comment