Tag Archives: json

(JavaScript) Augment Storage Prototype with getObject, setObject

Provides getter/setter functionality for objects in local storage. Utilizes JSON.stringify and JSON.parse.

Posted in JavaScript | Also tagged , , , , , , | Leave a comment

Persistent local storage with HTML5 Web Storage

HTML5 supports local storage with key-value pairs. The specification for local storage in HTML5 is called “Web Storage“. Storage is demonstrated in the example below by storing and retrieving an array of actors.

Posted in JavaScript | Also tagged , , , , , , , , , , | Leave a comment

Serializing and deserializing JSON with JavaScript

This example is similar to the┬áSerializing and deserializing JSON with PHP example. JavaScript is used instead of PHP.┬áDouglas Crockford’s JSON library has been used for serializing and deserializing JSON in JavaScript.

Posted in JavaScript | Also tagged , , , , , , | Leave a comment

Serializing and deserializing JSON with PHP

JSON (JavaScript Object Notation) is a standard for interchanging data. You might want to use for serializing and deserializing form input. This example uses the built-in functions of PHP5 for serializing and deserializing a multidimensional array.

Posted in PHP | Also tagged , , , , , , , , , , | Leave a comment