Skip to content

JSONParser

Type class

Parses a JSON string into data.

More info: Data: parsing

Sources

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

// Import JSONParser
import * as am5 from "@amcharts/amcharts5";
// Create JSONParser
am5.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

parse(input: string,
options?: IJSONParserOptions
)

StaticReturns any

Parses a JSON string. An array or object is returned as it is, and invalid JSON gives undefined.

Events

JSONParser does not have any events.