# JSON data

### Link Chart with remote JSON

If you want to use data for Chart from your REST API response go to `JSON tab` and click `HTTPS link`, your JSON must be valid. After syncing you need to select keys, header and click Create chart.

![](https://2687445983-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LjckyokuMSRQdYTIfLV%2F-Ln5GgDFSFKGqYUtBOXO%2F-Ln5H4-PMBl2HoPAPV6s%2Fjson.png?alt=media\&token=0f2355a7-f716-47de-8a8c-407e4c7e751b)

### Upload JSON

If you want to upload static JSON file click `Local JSON` in the JSON tab. You can use only valid JSON.

### What is valid JSON

Valid JSON must have array of objects, each object must have the similar keys.

```javascript
[
	{
		"date":"21.03",
		"price":"$120.3",
		"sales":43
	},
	{
		"date":"22.03",
		"price":"$130.4",
		"sales":40
	},
	{
		"date":"23.03",
		"price":"$70.1",
		"sales":25
	}
]
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://pavel-kuligin.gitbook.io/chart/json-data.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
