A data source that retrieves data stored in JSON format.
export class JsonDataSource extends DataSource
The DashboardJsonDataSource allows you to extract JSON data from a Web-service endpoint URI, text file, or a string in JSON format.
The JsonDataSource object requires the open source Newtonsoft.Json library. Install the Newtonsoft.Json NuGet package in Visual Studio.
Initializes a new instance of the JsonDataSource class.
constructor(dataSourceJSON?: any, serializer?: DevExpress.Analytics.Utils.ModelSerializer)
Name | Type | Default | Description |
---|---|---|---|
dataSourceJSON | any | null | A JSON object used for dashboard deserialization. Do not pass this parameter directly. |
serializer | ModelSerializer | null | An object used for dashboard deserialization. Do not pass this parameter directly. |
Specifies a root JSON node.
rootElement: ko.Observable<string>
Type | Description |
---|---|
ko.Observable<string> | A string that is the root node's name. |
Gets a JSON data source schema.
schema: ko.Observable<DevExpress.Analytics.Data.JsonSchemaRootNode>
Type | Description |
---|---|
ko.Observable<JsonSchemaRootNode> | A JSON data source schema. |
Gets the display name of the current data source.
getDisplayNamePrefix(): string
Type | Description |
---|---|
string | A string that is the display name of the current data source. |
For internal use.
getInfo(): DevExpress.Analytics.Utils.ISerializationInfoArray
Type | Description |
---|---|
ISerializationInfoArray | An array of objects that provide serialization info. |