xpath in gson tree

884 views
Skip to first unread message

Joersch

unread,
May 6, 2011, 7:39:50 PM5/6/11
to google-gson
it would by nice that i can access JsonElements via XPath like
statements in Gson-Tree's.

e.g. like:
JsonParser parser = new JsonParser();
JsonElement element = parser.parse(jsonString); // parse into Tree
String value = element.get("mystructure.myArray[3].mypropertie") //
get Value via XPath expression

does is it possible?

inde...@gmail.com

unread,
May 8, 2011, 4:22:00 AM5/8/11
to googl...@googlegroups.com
Seems like an interesting idea. I have logged a feature request at: http://code.google.com/p/google-gson/issues/detail?id=322
Please follow the bug regarding updates on this feature request or share additional proposals/thoughts.

Thanks
Inder
Reply all
Reply to author
Forward
0 new messages