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";

/**
 * --------------------------------------------------------
 * Include via: <script src="core.js"></script>
 * Access items like: am4.JSONParser
 * --------------------------------------------------------
 */

Inheritance

JSONParser extends DataParser.

JSONParser is not extended by any other symbol.

Properties

contentType
#

Type string

Default "application/json"

Content-type suitable for JSON format.

options
#

Type IJSONOptions

Parser options.

IJSONOptions for description of each option

Methods

isJSON(

data: string

)

#

Static

Returns boolean

Tests if the data is valid JSON.

parse(

data: string

)

#

Returns any

Parses and returns data.

Events

JSONParser does not have any events.

Adapters

JSONParser does not have any adapters.