##serializeapp
serializeapp is a node utility module to serialize a Qlik Sense app into a JSON object.
Pass it a qsocks app class and it returns the JSON representation of that app.
Returns a promise as standard but also accepts classical node style callbacks.
Verified to work in the browser using browserify or webpack.
##installing
npm install serializeapp
##examples
Connect to Qlik Sense Desktop, open a app and pass that into serializeapp.
var qsocks = require('qsocks')
var serializeapp = require('serializeapp')
qsocks.Connect().then(function(global) {
global.openDoc('Executive Dashboard.qvf')
.then(function(app) {
return serializeapp(app);
})
.then(function(data) {
console.log(data)
})
})
##Returns
{
properties: {}, -> @Object AppEntry
loadscript: '', -> @String Loadscript
sheets: [], -> @Array - Array of GenericObjectEntry and its children
stories: [], -> @Array - Array of GenericObjectEntry and its children
masterobjects: [], -> @Array - Array of GenericObjectEntry
dataconnections: [], -> @Array - Array of Connection
dimensions: [], -> @Array - Array of GenericDimensionProperties
measures: [], -> @Array - Array of GenericMeasureProperties
bookmarks: [], -> @Array - Array ofGenericBookmarkLayout
embeddedmedia: [], -> @Array of MediaListItem
fields: [], -> @Array of NxFieldDescription
snapshots: [] -> @Array of Array of GenericBookmarkLayout
}