JSONPath and JSON with string variables

Posted on 2014-07-16
Last Modified: 2014-07-16
I went to a JSONPath verification site:

Open in new window

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


Open in new window

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


Open in new window

and this returned to me the value of


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:


Open in new window

Question by:Anthony Lucia
    LVL 6

    Accepted Solution

    Im pretty sure this is the standard format of Json
    LVL 6

    Expert Comment

    by:M. Jayme Nagy
    for more information on json
    LVL 58

    Assisted Solution

    It's returning what is expected, the same as if you did

    somevar = "abc";

    When you work on the value it isn't "abc" you are working on, it will be just abc

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Free Trending Threat Insights Every Day

    Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

    Suggested Solutions

    Title # Comments Views Activity
    Query datatable in LINQ 6 24
    Wordmerge 8 29
    Change to event 1 47
    Resize option with mouse for datagridview at runtime 5 24
    Many of us here at EE write code. Many of us write exceptional code; just as many of us write exception-prone code. As we all should know, exceptions are a mechanism for handling errors which are typically out of our control. From database errors, t…
    Java functions are among the best things for programmers to work with as Java sites can be very easy to read and prepare. Java especially simplifies many processes in the coding industry as it helps integrate many forms of technology and different d…
    The purpose of this video is to demonstrate how to set up the WordPress backend so that each page automatically generates a Mailchimp signup form in the sidebar. This will be demonstrated using a Windows 8 PC. Tools Used are Photoshop, Awesome…
    The viewer will learn how to implement Singleton Design Pattern in Java.

    779 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    20 Experts available now in Live!

    Get 1:1 Help Now