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

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



I can’t wait to go check it out :P
Thank you, thank you, thank you, thank you. Finally a good plus tutorial!
We submitted the top data referring to this good post using automatic article submission and some article submit service.
Why are there loads of PHP & MySQL tutorials and no ASP.NET tutorials?
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.
nice catch Mark…
because asp = microsoft = bad? :P
caz u didnt know that or didnt study :P
ASP.NET is really good !
But that didn’t mean PHP + MySQL is bad !
Damn this is a nice tutorial! Thanks for sharing
thank u ……..
Very GooooooooooooooooooooooooooooooooooooooooD……….
thank you !
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);
}
Why are their no comments in with the code? I am having a hard time figuring out what is going on.
Why are there no comments in with the code? I am having a hard time figuring out what is going on.
D7ykZP With the bases loaded you struck us out with that answer!
premium content is really awesome ! thanks Andrew :)
wow nice thank’s
thank you for this.