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: am4core.JSONParser */Inheritance
JSONParser extends DataParser.
JSONParser is not extended by any other symbol.
Properties
contentTypeType
stringDefault"application/json"Content-type suitable for JSON format.
optionsType
IJSONOptionsParser options.
More info:
IJSONOptionsfor description of each option
Methods
isJSON(data:string)StaticReturns
booleanTests if the data is valid JSON.
parse(data:string)Returns
anyParses and returns data.
Events
JSONParser does not have any events.