Date serialization & deserialization – POJO to JSON (GSON & example)
Given the user defined object or POJO, having Date field, we would like to serialize the POJO to JSON. During serialization, we would […]
Given the user defined object or POJO, having Date field, we would like to serialize the POJO to JSON. During serialization, we would […]
Given an list of user defined objects, we would like to convert list of pojo objects to JSON (and JSON to list
Given an array of user defined objects , we need to convert array of POJOs to JSON String. Also, we will convert
Given the Map of String and object (Map<String,Object>), we would like to convert Map to JSON and vice versa. We will use the
Given a user defined object, we would like to convert Object( or POJO) to JSON and vice versa. We will use the Google gson