Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions content/components/json.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,9 @@ Example 2: Simple JSON:
{"key": 42.0, "greeting": "Hello World"}
```

> [!NOTE]
> To use the json component, you need to include it in your config. Be sure to put `json:` at the root level, along with other components like `esphome:`.

## Parsing JSON

This example assumes that the server returns a response as a JSON object similar to this:
Expand Down Expand Up @@ -120,6 +123,6 @@ Another important resource is [JSONLint](https://jsonlint.com/). It will help yo
## See Also

- {{< docref "index/" >}}
- {{< apiref "http_request/http_request.h" "http_request/http_request.h" >}}
- {{< apiref "json/json_util.h" "json/json_util.h" >}}
- {{< apiref "HTTP Request" "http_request/http_request.h" >}}
- {{< apiref "json_util.h" "json/json_util.h" >}}
- [ArduinoJson](https://arduinojson.org/)