JsonDataSource Class
A data source that retrieves data stored in JSON format.
#Declaration
export class JsonDataSource extends DataSource
#Remarks
The DashboardJsonDataSource allows you to extract JSON data from a Web-service endpoint URI, text file, or a string in JSON format.
Important
The Dashboard
object requires the System.DevExpress.
property to Newtonsoft
to use the Newtonsoft.
#Inherited Members
#Inheritance
#constructor
Initializes a new instance of the JsonDataSource
class.
#Declaration
constructor(
dataSourceJSON?: any,
serializer?: DevExpress.Analytics.Utils.ModelSerializer
)
#Parameters
Name | Type | Description |
---|---|---|
data |
any | A JSON object used for dashboard deserialization. Do not pass this parameter directly. |
serializer | Model |
An object used for dashboard deserialization. Do not pass this parameter directly. |
#Properties
#rootElement Property
Specifies a root JSON node.
#Declaration
rootElement: ko.Observable<string>
#Property Value
Type | Description |
---|---|
Observable<string> | A string that is the root node’s name. |
#schema Property
Gets a JSON data source schema.
#Declaration
schema: ko.Observable<DevExpress.Analytics.Data.JsonSchemaRootNode>
#Property Value
Type | Description |
---|---|
Observable<Json |
A JSON data source schema. |
#Methods
#getDisplayNamePrefix Method
Gets the display name of the current data source.
#Declaration
getDisplayNamePrefix(): string
#Returns
Type | Description |
---|---|
string | A string that is the display name of the current data source. |
#getInfo Method
For internal use.
#Declaration
getInfo(): DevExpress.Analytics.Utils.ISerializationInfoArray
#Returns
Type | Description |
---|---|
ISerialization |
An array of objects that provide serialization info. |