Questions tagged as 'gson'

1
answer

How to walk a Json with Array

Good I am having problems to travel a json with array or that I think, I leave you the code json: { "username": "Pepiko", "platform": "pc", "stats": { "kills_solo": 1, "placetop1_solo": 0, "placetop10_solo"...
asked by 29.09.2018 / 21:24
1
answer

Create JSON with 4 Entities on android (with GSON)

I need to create an array with data that I have in 4 SQLite tables, these 4 tables have their 4 entities with their Getter and Setter methods, the question is to create a JSON using the GSON libraries would have to create an entity with the fiel...
asked by 25.11.2018 / 07:19
2
answers

Convert a JSON to an array

My question is this: How can I convert the result object to a list (array) in Java ?. The JSON is something like the following: { "order_id": "12345", "paging": { "total": 41, "offset": 0, "limit":...
asked by 15.05.2017 / 00:01
7
answers

Problem to convert JSON to JAVA object

I have the following JSON , it is a response of API : { "ES1800496542831234567890":{ "transactions":[ { "idmovimiento":"714597", "fechaoperacion":"2016-05-27", "fechavalor":...
asked by 10.10.2016 / 21:44
1
answer

Retrofit 2 Android Deserializer JSON GSON

I just started with Retrofit 2 for Android, I opted for the good reviews I had, although I would have stayed with Volley since I see it much easier. The fact is that the issue of deserializar the JSON with GSON is giving me quite the can....
asked by 21.08.2016 / 11:30
1
answer

Android library Gson on Mobile does not work

The problem I have is that in my Android application I am using an object
asked by 08.05.2016 / 15:47
0
answers

NullPointerException when accessing values from a HashMap

I'm trying to access the values of a HashMap<> but the application stops when from a custom adapter I try to take the values I passed to the HashMap , showing this message in the logcat:    E / AndroidRuntime: FATAL EXCEPT...
asked by 11.03.2018 / 07:57
1
answer

How to add a converter (GSON) to retrofit in netbeans for javaFX project?

As you already read above, I am trying to configure a converter to retrofit , all this in netbeans, for android it will be used and there it will be added with Gradle and in netbeans with maven but at the time of doing the class w...
asked by 21.04.2018 / 20:49
1
answer

Get JSON data with GSON in Java

I need to get the data progress and tres (see example below) but I do not know how. Also in some occasions I will have to recover more data of the type class without knowing in advance how many will be. I'm looking at...
asked by 20.02.2018 / 18:33
1
answer

Parse JSON objects with random names

I'm trying to pair objects JSON with GSON I'm used to knowing the names of the objects, I create the classes and I just have to call those classes to use the objects and build custom adapters and finally fill lists or other views easily with...
asked by 31.01.2018 / 21:38