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 Default Content-type suitable for JSON format. |
---|---|
options # |
Type Parser options.
|
Methods
isJSON( data: ) |
Static Returns Tests if the data is valid JSON. |
---|---|
parse( data: ) |
Returns Parses and returns data. |
Events
JSONParser does not have any events.
Adapters
JSONParser does not have any adapters.