MindFusion.Charting for JavaScript Programmer's Guide
DateSettings.fromJson Method
See Also
Collapse All Expand All Language Filter: All Language Filter: Multiple Language Filter: None Language Filter: C# Language Filter: Visual Basic Language Filter: Java Language Filter: JavaScript Language Filter: C++ Language Filter: XAML

C#
Visual Basic
Java
JavaScript
C++
XAML

Deserializes the settings from a JSON string.

Namespace: MindFusion.Common
File: Locale.js

## Syntax

JavaScript Copy Code
function fromJson (json)

### Parameters

json

  Type: String
  String. A string containing data for the settings.

## Example

The 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

DateSettings Members
DateSettings Class
MindFusion.Common Namespace