Hi Ranchers,
Here is a small utility to query the JsonObject for a particular property. It may be helpful to some of you.
It contains a static public method which accepts an expression, property separator and JsonObject.
The expression can be of the form Node1:Node2:Node3, where Node3 is the targetted property and ":" is a property seperator. See Sample.
if you want to query the name property of the above object then you can call the method as
The output of the method is list of
string, i.e if the targeted property is a JsonObject then it will be toString() ed.
Regards,
--
Avinash
Avinash G.A
OCP Java SE 6 Programmer, OCP Java EE 5 Web Component Developer, OCE Java EE 6 Web Services Developer, VMware Certified Core Spring 3.x Developer, EMC Proven Professional (ISM-V2)