Top "Gson" questions

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

Get nested JSON object with GSON using retrofit

I'm consuming an API from my android app, and all the JSON responses are like this: { 'status': 'OK', 'reason': 'Everything …

java android json gson retrofit
JAVA - Best approach to parse huge (extra large) JSON file

I'm trying to parse some huge JSON file (like http://eu.battle.net/auction-data/258993a3c6b974ef3e6f22…

java json gson
Creating GSON Object

How do I create a json Object using Google Gson? The following code creates a json object which looks like {"…

java json gson
Gson TypeToken with dynamic ArrayList item type

I have this code: Type typeOfObjectsList = new TypeToken<ArrayList<myClass>>() {}.getType(); List<myClass> objectsList = …

java reflection arraylist gson
Using Enums while parsing JSON with GSON

This is related to a previous question that I asked here earlier JSON parsing using Gson I am trying to …

java json gson
Unable to create converter for my class in Android Retrofit library

Im migrating from using Volley to Retrofit, I already have gson class that I used before for converting JSONObject reponse …

android gson retrofit
Karaf / Maven - Unable to resolve: missing requirement osgi.wiring.package

I am unable to start a bundle in Karaf (version 3.0.1). The bundle is built using maven and it imports gson. …

java maven gson apache-karaf
Trouble with Gson serializing an ArrayList of POJO's

I had been planning on using simpleXML for my serialization needs, but figured I would try JSON out, to learn …

java json serialization arraylist gson
gson.toJson() throws StackOverflowError

I would like to generate a JSON String from my object: Gson gson = new Gson(); String json = gson.toJson(item); …

java json object gson stack-overflow
GSON - Get JSON value from String

I trying to parse the JSON String "{'test': '100.00'}" and to get the value: 100.00 with the GSON library. My …

java json parsing gson