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.