SimileAjax/JSON

From SIMILE Widgets
Jump to: navigation, search

Contents

SimileAjax.JSON

This file was copied in its entirety from the commonly used JSON library, with changes made to place it in the SimileAjax namespace.

Code: http://api.simile-widgets.org/ajax/2.2.1/scripts/json.js

Migration Notes

There are both a newer version of the JSON library and a jQuery plugin to handle parsing and generating JSON. This can be wholly replaced.

Back to SimileAjax.

Methods

Extends all native Javascript types with a toJSONString method.

SimileAjax.JSON.toJSONString

Description: Turn an object into a JSON, eval-ready string.

SimileAjax.JSON.parseJSON

Description: Convert a JSON string into an object.

Back to SimileAjax.

Personal tools
Namespaces
Variants
Actions
Navigation
Toolbox