Public Method Author API

getItem()

Gets the current Item JSON of the Item being edited.

You would want to use this method so that you can store the Item JSON in your own database, for example.

Returns itemJson, the current Item JSON, or false if not editing an Item.

Examples

var itemJSON = authorApp.getItem();
console.log(itemJSON);

Arguments

None.

Return value

Value object

Properties
features
array[widgetObject]
Array of Widget objects for Features in the Item.
item
object
The settings and contents of the Item.
questions
array[widgetObject]
Array of Widget objects for Questions in the Item.

Related articles

  • The setItemJson() method, which allows you to overwrite the current Item JSON.
Was this article helpful?