Issue 638 in google-gson: Can we have feature to access child directly using SerializedName?

7 views
Skip to first unread message

googl...@googlecode.com

unread,
Apr 24, 2015, 1:15:09 AM4/24/15
to google-gson...@googlegroups.com
Status: New
Owner: ----
Labels: Type-Defect Priority-Medium

New issue 638 by nucleus...@gmail.com: Can we have feature to access child
directly using SerializedName?
https://code.google.com/p/google-gson/issues/detail?id=638

It will be better if I can access chile object directly using
SerializedName so I don't have to make wrapper like this problem,
source:http://stackoverflow.com/questions/12029367/parsing-json-using-google-gson-reading-values-directly-from-child-objects

JSON:
{"Name":
{"object1":
{"field1":"17",
"field2":"360",
"field3":"19",
"field4":"sun",
"field5":"rain"
}
}
}

intended use/ ideally usage:

@SerializedName("Name/object1/field1")
public int fieldOne;

or

@SerializedName("Name.object1.field1")
public int fieldOne;

--
You received this message because this project is configured to send all
issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings
Reply all
Reply to author
Forward
0 new messages