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!

  • Subscribe to the Nettuts+ RSS Feed for more daily web development tuts and articles.

Tags: Premium
Add Comment

Discussion 20 Comments

  1. Devin Rajaram says:

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

  2. David Moreen says:

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

  3. Ellie29 says:

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

  4. Davinder says:

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

  5. Patrick says:

    because asp = microsoft = bad? :P

  6. ASP.NET is really good !

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

  7. Ortwin says:

    Damn this is a nice tutorial! Thanks for sharing

  8. MOHSIN says:

    Very GooooooooooooooooooooooooooooooooooooooooD……….

  9. Uzeyir says:

    thank you !

  10. 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);
    }

  11. Brad says:

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

  12. Brad says:

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

  13. Elora says:

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

  14. Khalid Magdy says:

    premium content is really awesome ! thanks Andrew :)

  15. arnold says:

    wow nice thank’s

  16. arnold says:

    thank you for this.

Add a Comment

To add a code snippet to your comment, please wrap your code like so: <pre name="code" class="html">YOUR CODE</pre>. You can replace the class name with "js," "css," "sql," or "php." If there are any "<" or ">" within your code, please search and replace them with: &lt; and &gt; respectively.