discomarathon / google-gson

Automatically exported from code.google.com/p/google-gson
0 stars 0 forks source link

json-lib to gson conversion #195

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
i have the following code using json-lib

String response = put(command.toString());
JsonConfig jsonConfig = new JsonConfig();
jsonConfig.setExcludes(new String[]{"cookie", "length"});
final JSONArray jsonResponse = (JSONArray)
JSONSerializer.toJSON(response,jsonConfig);

I have to rewrite this code on Android using gson.. I could not find a
configurable Json de-serialzer where i can write excludes as above. Does
any one have any idea how i can do so.

Original issue reported on code.google.com by daljeet....@gmail.com on 16 Feb 2010 at 7:17

GoogleCodeExporter commented 9 years ago

Original comment by limpbizkit on 6 Oct 2010 at 5:55

GoogleCodeExporter commented 9 years ago

Original comment by inder123 on 3 Nov 2010 at 12:29

GoogleCodeExporter commented 9 years ago
Does the exclusion strategy feature support this?

See 
http://google-gson.googlecode.com/svn/trunk/gson/docs/javadocs/com/google/gson/E
xclusionStrategy.html

Original comment by joel.leitch@gmail.com on 15 Feb 2011 at 6:42

GoogleCodeExporter commented 9 years ago
Reopen if this is still an issue.

Original comment by limpbizkit on 30 Dec 2011 at 6:31