Deserializes the settings from a JSON string.
Namespace: MindFusion.Common
File: Locale.js
SyntaxJavaScript
Copy Code
|
|---|
function fromJson (json) |
String. A string containing data for the settings.
ExampleThe following code creates a new Locale instance and loads the date and time format settings from a json file.
JavaScript
Copy Code
|
|---|
| var locale = new Locale("us-2"); locale.dateSettings.fromJson("locale.json"); locale.dateSettings.generate(); calendar.locale = locale; |
See Also