gson
How to expose a method using GSon?
Using Play Framework, I serialize my models via GSON. I specify which fields are exposed and which aren\'t.[详细]
2023-04-04 15:27 分类:问答Play! framework renderJson not exposing particular fields
I\'m trying to expose a dynamic(transient) field in my models via renderJson(), but it\'s not working. Here\'s an example:[详细]
2023-04-04 06:09 分类:问答Gson exception while reading Json with JsonArray and JsonObject
I am trying to call a json response using Gson. But it contains a JSONArray object on one place and a JSONObject in place in the same hierarchy, here my json response is:[详细]
2023-04-03 17:47 分类:问答Why does Gson.toJson serialize a generic field to an empty JSON object?
I have a generic class containing a field of type T, Gson serializes this field as an empty object. I have included code below to demonstrate the issue. Reading the JSON back seems fine (as long as yo[详细]
2023-04-03 01:26 分类:问答GSON problem in android 2.3.3
I am having trouble serializing to JSON via GSON . Here is my Poll class package com.impact.datacontracts;[详细]
2023-04-02 11:57 分类:问答Parse JSON date with GSON
How can I parse JSON dates with GSON? Ke开发者_如何学运维eps getting errors. The date format in the JSON looks like this:[详细]
2023-03-30 14:54 分类:问答Gson Deserializing issues
I need help with deserializing JSON with gson. I have this JSON: { \"result\":{ \"grid\":{ \"javaClass\":\"com.company.collections.GridSummary\",[详细]
2023-03-30 12:23 分类:问答How can I refactor these wrapper methods to get rid of duplicated code?
The following two methods are used to wrap deserialization using Google Gson: public static <T> T Deserialize(String jsonData, Type t) {[详细]
2023-03-28 18:24 分类:问答JSON GSON from http
the following code is not working for me. Can you tel me where I am going wrong... public class HttpActivity extends Activity {[详细]
2023-03-28 08:54 分类:问答Gson error when parsing empty arrays [closed]
Closed. This question needs to be more focused. It is not currently accepting answers. Want to improve this question? Update the question so it focuses on one problem only by editing this po[详细]
2023-03-27 17:12 分类:问答