Top "Gson" questions

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

Parse JSON array response using Retrofit & Gson

Here is my JSONArray Response from Web service: [ { "sponsors": [ { "leg_id": "NYL000067", "type": "primary", "name": "AUBRY" }, { "leg_id": "NYL000171", "type": "…

android json gson retrofit2
implement AsyncTask in Fragment android

I've an activity which output json data from as a list. But now I want to implement it in a …

android android-fragments android-asynctask gson android-gridview
Could not serialize object cause of HibernateProxy

I am getting the following error response from the server. HTTP Status 500 - type Exception report message descriptionThe server encountered …

java hibernate jakarta-ee jax-rs gson
GsonBuilder setDateFormat for "2011-10-26T20:29:59-07:00"

I'm getting a date/time in json as 2011-10-26T20:29:59-07:00. What's the proper way to use gsonBuilder.setDateFormat …

java date gson
retrofit convertor factory can not access GsonConverterFactory

I have included these dependencies to my project: compile 'com.squareup.retrofit:retrofit:2.0.0-beta2' compile 'com.squareup.retrofit:converter-gson:2.0.0…

android gson retrofit
Java Type Generic as Argument for GSON

In GSON to get a list of objects you do Gson gson = new Gson(); Type token = new TypeToken<List&…

java generics gson
Iterate over JsonObject properties

I would like to iterate through the big wrapping JsonObject with Gson. My final aim is to get an ArrayList …

java json iteration gson
Multiple GSON @SerializedName per field?

Is there any way in Gson to map multiple JSON fields to a single Java object member variable? Let's say …

java json gson
How to serialize a class with an interface?

I have never done much with serialization, but am trying to use Google's gson to serialize a Java object to …

java json interface gson
GSON JsonObject "Unsupported Operation Exception: null" getAsString

Running a Play! app with Scala. I'm doing a request where the response is expected to be a JSON string. …

scala playframework gson