Link to home
Start Free TrialLog in
Avatar of Anthony Lucia
Anthony Lucia

asked on

JSONPath and JSON with string variables

I went to a JSONPath verification site:

http://jsonpath.curiousconcept.com/

Open in new window


I have a string: contained within the following JSON object:

{"string":"abc"}

Open in new window


I used the following JSONPath expression to get the value of "string"

$.string

Open in new window


and this returned to me the value of

   "abc"

Open in new window



My qusetion is:  is there a JSONPath expression that I can use that will return the value of "string" without the double quotes enclosing the string, in other words, is there a way to write a JSONPath expression tha twill return the following:

   abc

Open in new window


Thanks
ASKER CERTIFIED SOLUTION
Avatar of J N
J N

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of J N
J N

for more information on json
http://json.org/
SOLUTION
Avatar of Gary
Gary
Flag of Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial