Top "Gson" questions

Gson is Google's open-source library for serializing and deserializing Java objects to/from JSON.

Gson ignoring map entries with value=null

Gson gson = new Gson(); Map<String,Object> map = new HashMap<String, Object>(); map.put("a", 1); map.…

java json gson
google gson LinkedTreeMap class cast to myclass

I knew this question has been asked before. Due to my novice skill in java and android. I can't resolve …

java android gson
Gson turn an array of data objects into json - Android

Currently I am working on a native android app with webView front end. I have something like: public class dataObject { …

java android json gson
How to handle Dynamic JSON in Retrofit?

I am using the retrofit efficient networking library, but I am unable to handle Dynamic JSON which contains single prefix …

android json gson retrofit
serialize and deserialize enum with Gson

How can i serialize and deserialize a simple enum like this with gson 2.2.4 ? public enum Color { RED, BLUE, YELLOW; }

java serialization enums deserialization gson
Query a JSONObject in java

I was wondering if somewhere out there exists a java library able to query a JSONObject. In more depth I'm …

java json jackson gson
Polymorphism with gson

I have a problem deserializing a json string with Gson. I receive an array of commands. The command can be …

java json polymorphism gson deserialization
Is it OK to use Gson instance as a static field in a model bean (reuse)?

Here's the model I implemented: public class LoginSession { private static final Gson gson = new Gson(); private String id; private String …

java static thread-safety gson
How can I add Boon or Jackson JSON parsers to Android project with Gradle?

I would like to know how can I add Boon or Jackson parser to an android project using Gradle? I …

json jackson gson android-gradle-plugin
Convert JSON style properties names to Java CamelCase names with GSON

I'm using GSON to convert JSON data I get to a Java object. It works pretty well in all my …

java json gson camelcasing