This namespace defines a selector for JSON objects, which is a simplified Xpath for safe JSON object data selection. The functions in this namespace are used within jsMotif.Template.
getData
(path, defaultValue)
|
This function retrieves data from a JSON object, using the provided path. |
resolveCondition
(selector)
|
This function resolves a conditional path. |
getData
(path, defaultValue)
getData.call(jsonObject,'path1.path2[3]','default text');
path
defaultValue
resolveCondition
(selector)
resolveCondition.call(jsonObj,'path1.inner1'); resolveCondition.call(jsonObj,'path1.inner2=="some text");
selector
Copyright © 2011 Nokia. All rights reserved. Terms and Conditions