Skip to content

JSONParser

Type classSince 5.3.0

Builds charts from JSON configs.

More info: Serializing / JSON config

Sources

JSONParser can be used (imported) via one of the following packages.

// Import JSONParser
import * as am5plugins_json from "@amcharts/amcharts5/plugins/json";
// Create JSONParser
am5plugins_json.JSONParser.new(root, {
// ... config if applicable
});

Inheritance

JSONParser does not extend any other symbol.

JSONParser is not extended by any other symbol.

Properties

JSONParser does not have any properties.

Methods

new(root: Root)

StaticReturns T

Use this method to create an instance of this class.

More info: Getting started: new element syntax

parse(object: unknown,
settings: IParseSettings
)

Returns Promise

Builds the chart objects a config describes, loading the classes it needs first.

parseString(string: string,
settings: IParseSettings
)

Returns Promise

Builds the chart objects a config describes, from a JSON string.

Events

JSONParser does not have any events.