Top "Gson" questions

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

Android - Save Parcelable data into a file

I used to use Serializable objects to save them in filesytem and read them in order to do whatever I …

android gson parcelable serializable
Convert ForeignCollection to ArrayList - ORMLite, Gson and Android

I apologize if I'm not super clear with my explanation but I'll add to and edit this question for clarity …

android arraylist gson ormlite foreign-collection
org.openqa.selenium.remote.UnreachableBrowserException: Error communicating with the remote browser. It may have died with ChromeDriver and Selenium

I'm running a bunch of test cases every hour using selenium-java 3.12.0; TestNG; Selenoid with docker, Jenkins. Sometimes (about 1 out of 10 …

selenium jenkins gson selenium-chromedriver selenoid
Deserialize nested object with GSON

I'm trying to deserialize the following structure { meta: { keywords: [a, b, c, d]} ... } other valid structures are { meta: { keywords: "a,…

java gson json-deserialization android
Multiple converters with Retrofit 2

I have a HATEOAS (HAL) REST service and managed to talk to it with the code below (using halarious as …

java generics gson retrofit hateoas
Convert String date to Object yields Invalid time zone indicator '0'

I got an Android app which receives Json responses from a web service. One of the responses is a json …

java json gson java.util.date
Gson - Serialize Nested Object as Attributes

Is there an easy way to convert how a nested Object is converted to JSON? I'm trying to just create …

json gson android-json
Gson and Active Android: Attempted to serialize java.lang.Class. Forgot to register a type adapter?

I'm using Gson to serialize an Active Android model. The model class contains only primitives, and Gson should have no …

android gson activeandroid
Converting BSON Type ObjectId to JSON (Storing in Mongodb) -Java

new Gson().toJson(new ObjectId()) When I do the above, the output I get is "_id" : { "_time" : 1374347520 , "_machine" : -1025067326 , "_inc" : 585905201 , "_…

java mongodb gson bson
Create a specific JSON String with Gson

When I use JSON-Lib project, I can create with the command JSONObject jObject = new JSONObject(); jObject.accumulate("articles", list); String …

java json gwt gson json-lib