This namespace provides access to JSON enhancements, like revival of MobiControl classes.
- Since:
- Version 1.4 (API level 5)
Methods
-
static revive(key, valuenullable) → {object}
-
Convert native JavaScript object into an instance of MobiControl class. If the passed value corresponds to a revivable MobiControl class like mobicontrol.apn.ApnConfiguration - a new instance of that class is returned, otherwise the value itself is returned. Note: This function is intended to be passed as a second parameter to
JSON.parse
in order to restore revivable classes; it is not intended to be called directly.
Check JSON Serialization tutorial for details.Parameters:
Name Type Attributes Description key
string Property name. value
object <nullable>
Property value. Returns:
object - If the passed value corresponds to a valid revivable class - the instance of that class, otherwise the unmodified value itself.- Since:
- Version 1.4 (API level 5)