Storing Data with JSON: New Plus Tutorial
plus

Storing Data with JSON: New Premium Tutorial

Download Source Files

Sometimes, PHP and SQL are a bit heavy for the quick job you want to do, but you’d like to have some persistent data. Today, in this Premium tutorial and screencast, you’ll learn how to create a mini API that will make storing, retrieving, and working with JSON in JavaScript a breeze! Join Plus!

Join Tuts Premium

NETTUTS+ Screencasts and Bonus Tutorials

For those unfamiliar, the family of TUTS sites runs a premium membership service called “Premium”. For $19 per month, you gain access to exclusive premium tutorials, screencasts, and freebies from Nettuts+, Psdtuts+, Aetuts+, Audiotuts+, and Vectortuts+! For the price of a pizza, you’ll learn from some of the best minds in the business. Join today!

Tags: Premium
Note: Want to add some source code? Type <pre><code> before it and </code></pre> after it. Find out more
  • Devin Rajaram

    I can’t wait to go check it out :P

  • http://spotdex.com/ David Moreen

    Thank you, thank you, thank you, thank you. Finally a good plus tutorial!

  • http://www.4submission.com Ellie29

    We submitted the top data referring to this good post using automatic article submission and some article submit service.

  • Davinder

    Why are there loads of PHP & MySQL tutorials and no ASP.NET tutorials?

    • http://www.msinkinson.co.uk Mark Sinkinson

      From the Nettuts about section:

      Nettuts+ is a site aimed at web developers and designers offering tutorials and articles on technologies, skills and techniques to improve how you design and build websites. We cover HTML, CSS, Javascript, CMS’s, PHP and Ruby on Rails.

      • http://laranzjoe.blogspot.com lawrence77

        nice catch Mark…

  • Patrick

    because asp = microsoft = bad? :P

    • http://laranzjoe.blogspot.com lawrence77

      caz u didnt know that or didnt study :P

  • http://sonergonul.com Soner Gönül

    ASP.NET is really good !

    But that didn’t mean PHP + MySQL is bad !

  • http://www.ortwin.nl Ortwin

    Damn this is a nice tutorial! Thanks for sharing

  • http://thiru4all.blogspot.com thangathiruppathy

    thank u ……..

  • MOHSIN

    Very GooooooooooooooooooooooooooooooooooooooooD……….

  • Uzeyir

    thank you !

  • http://mattlundstrom.net Matt Lundstrom

    It wasn’t working for me until I realized that I had magic quotes on, which was making the json invalid. I modified the writefile() function in json.db and got it working. Below is my update.

    function write_file ($path, $jsonstr) {
    $stream = fopen($path, ‘w’);
    $jsonstr = stripslashes($jsonstr);
    fwrite($stream, $jsonstr);
    }

  • Brad

    Why are their no comments in with the code? I am having a hard time figuring out what is going on.

  • Brad

    Why are there no comments in with the code? I am having a hard time figuring out what is going on.

  • http://www.yahoo.com/ Elora

    D7ykZP With the bases loaded you struck us out with that answer!

  • http://www.thedevdot.com Khalid Magdy

    premium content is really awesome ! thanks Andrew :)

  • http://verycheapceobacklinks.com/ arnold

    wow nice thank’s

  • http://highqualityseobacklinks.com/ arnold

    thank you for this.

  • Mike

    Why on earth is there no link to this? All links point to /join.

  • Software Test Metrics

    I admire the post created by you and would look for similar posts by you which would surely help us in one or the other ways.

    http://www.qatutorial.com