All Posts by Email, Once a Week

Media Temple logo

CSS-Tricks is brought to you in part by Media Temple, the web hosting that we both use and recommend.

Javascript decrypting json

  • # June 27, 2013 at 3:58 pm

    I need to access a .php file named warrantyClaimVinLookup.php using javascript. This file outputs jsonData that looks like {“vin”:”num1″,”serial”:”num2″}. How do I go about using javascript to turn this jsonData into two javascript variables.

    # June 27, 2013 at 4:37 pm

    This reply has been reported for inappropriate content.

    http://lmgtfy.com/?q=javascript+parse+json ;)

    If you don’t know how to get the data in the first place, I would use jQuery’s getJSON function. http://api.jquery.com/jQuery.getJSON/

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.

There's a whole bunch of content on CSS-Tricks.

Search for Stuff   •   Browse the Archives

Get the Newsletter ... or get the RSS feed