Tagged: #jackson

Java - Convert Object to Map

Java – Convert Object to Map

This tutorial provides several ways of converting a Java object to a Map in Java. 1. Reflection The traditional way of converting a Java object to a Map is through...

Convert JSON to Java Object

Convert JSON to Java Object

This tutorials shows 2 ways for converting a JSON string to a Java object. 1- Gson Gson is the most popular library for converting JSON string to Java objects. With Gson, you...

Convert Java object to JSON

Convert Java object to JSON

This tutorial shows 2 ways for converting Java objects to JSON. This kind of conversion is normally done via third-party libraries as it’s not supported by the JDK itself and...