gson
Java Gson - help me parse my JSON
I\'m new to GSON and am really struggling to parse this data: { \"0\":{ \"county\":\"Carlow\", \"coords\":{[详细]
2023-03-18 00:26 分类:问答ProGuard and Gson on Android (ClassCastException)
I am having a hell of a time with Gson and ProGuard.I have a simple object and when I parse tojson, save to sqllite and read back from the database in order to load the json back to my object, I get a[详细]
2023-03-16 22:19 分类:问答Parsing oddly constructed Json/Gson
I\'ll keep it brief, I\'m having a problem with some really badly laid out Json (from what I can tell anyway), I\'m pulling back from a web s开发者_JAVA百科ervice, I\'m new to java/android/json so any[详细]
2023-03-15 22:13 分类:问答Custom Deserializer GSON
I have been stumped on this topic for 2 days now, and cant seem to find what I need. I have a class as follows:[详细]
2023-03-15 20:24 分类:问答Parsing an object with variable type in gson
I have something like the following json string: {\"values\" : [ { \"group\":\"A\" \"rating\":2 }, { \"group\":\"B\"[详细]
2023-03-15 06:25 分类:问答Can't Convert string to JsonArray
How do you convert this String into gson.JsonArray? String s= \"[[\"110917\", 3.0099999999999998, -0.72999999999999998, 2.8500000000000001, 2.96, 685.0, 38603.0], [\"110917\", 2.71, 0.209999999999999[详细]
2023-03-14 18:37 分类:问答Parsing Gson with Json not working for Android
I have a web service class that successfully pulls my JSON from a feed into a String.I want to use Gson to parse it into a List of a custom class, but the parsing messes up somehow.[详细]
2023-03-13 18:14 分类:问答Deserializing multi-dimensional array GSON
I want to deserialize the following json data https://mtgox.com/code/data/getDepth.php. I keep getting an 开发者_如何学Pythonerror. Below is my code.[详细]
2023-03-13 17:59 分类:问答How to send create a JSON string and send it from server to android?
In my application a user will preform a HTTPrequest to retrieve data from the server. At the moment on the server side, i preform a database select statement and then use the ResultSetDynaBean to ret[详细]
2023-03-13 15:40 分类:问答How to keep fields sequence in Gson serialization
Seems like Gson.toJson(Object object) generates JSON code with randomly spread fields of the object. Is there way to fix fields order somehow?[详细]
2023-03-13 12:34 分类:问答