insertData(data {Object})

insertData(data {Object})
Takes data and parses it into the TILE JSON session.


data {Object}:

A JSON-based object that represents the data item that you are inputting into the core JSON. It must have the following parameters:

id: {String}

unique ID for the object

type: {String}

name for how the object will be stored within other objects. For example, if you had a selection object with ID ‘sel1′ and linked it to a shape ‘shp1′, ‘shp1′ would store your selections’s reference in an internal array of type, as specified by your type variable.

jsonName: {String}

name for where the object is stored in the core JSON. If you use the same name as in type, it will store at the global level, along with pages. If you use TILEPAGE (current url), it will store it as a variable inside that page element