Tag: json

Introduction As a Java developer, a common task you’ll encounter is converting between Java objects and JSON. The Jackson library is a powerful and widely used tool for this purpose. Whether you’re building RESTful APIs, microservices, or simply handling JSON data in your application, Jackson’s ObjectMapper class makes it easy to serialize and deserialize Java […]Continue reading

Prior to Jackson 1.2, the only way to serialize or deserialize JSON using Jackson was by using one of the following two methods: Now imagine you want to serialize or deserialize a 3rd party POJO which you don’t have access to its source code. What would you do? Also, you might want your code clean […]Continue reading

JSON has become the most preferred way of transmitting data across network connections. JSON being easily readable by machines is one of the many reasons for JSON’s popularity. However, JSON unless formatted well, is not easily readable by a human. Pretty printing a JSON is one common operation to improve the readability of the JSON. […]Continue reading

Jackson is a Java library for processing JSON data, enabling customization of serialization and deserialization through various annotations. These annotations, categorized as General, Serialization, Deserialization, and Polymorphic Type, provide developers control over JSON integration with Java objects. Key annotations like @JsonProperty, @JsonIgnore, and @JsonCreator facilitate precise data handling.

GSON is a very popular Java library for work with JSON. JavaScript Object Notation (JSON) is a lightweight data exchange format. Like XML, JSON provides a way of representing object that is both human readable and machine processable. In the Java ecosystem, there are several libraries that you can use to serialize Java objects to […]Continue reading

It’s not uncommon for computers to need to communicate with each other. In the early days, this was done with simple string messages. Which was problematic. There was no standard language. XML evolved to address this and provides a very structured way of sharing data between systems. XML is so structured, but many find it […]Continue reading