Skip to content

JSONParser

Type class

A parser for JSON.

Sources

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

/**
* Import from: "core.ts"
* Use like: am4core.JSONParser
*/
import * as am4core from "@amcharts/amcharts4/core";

Inheritance

JSONParser extends DataParser.

JSONParser is not extended by any other symbol.

Properties

contentType

Type stringDefault "application/json"

Content-type suitable for JSON format.

options

Type IJSONOptions

Parser options.

More info: IJSONOptions for description of each option

Methods

isJSON(data: string)

StaticReturns boolean

Tests if the data is valid JSON.

parse(data: string)

Returns any

Parses and returns data.

Events

JSONParser does not have any events.