From e0aed71418968939dd57d5ac9c30a30365ad3256 Mon Sep 17 00:00:00 2001 From: Chad Matsalla <48810546+ChadMatsalla@users.noreply.github.com> Date: Wed, 23 Jul 2025 08:10:57 -0600 Subject: [PATCH 1/4] Include json to use it --- components/json.rst | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/components/json.rst b/components/json.rst index ee743bbf3a..22b53ca8bd 100644 --- a/components/json.rst +++ b/components/json.rst @@ -59,6 +59,13 @@ Example 2: Simple JSON: {"key": 42.0, "greeting": "Hello World"} +..note:: + + To use the json component, you need to include it in your config: + + .. code-block:: yaml + + json: Parsing JSON: ------------- From 76a26aa60aad1f4f725ab276b9cd6e48dddad4dc Mon Sep 17 00:00:00 2001 From: Chad Matsalla <48810546+ChadMatsalla@users.noreply.github.com> Date: Wed, 23 Jul 2025 08:28:15 -0600 Subject: [PATCH 2/4] Syntax correction --- components/json.rst | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/components/json.rst b/components/json.rst index 22b53ca8bd..19572d018d 100644 --- a/components/json.rst +++ b/components/json.rst @@ -59,7 +59,7 @@ Example 2: Simple JSON: {"key": 42.0, "greeting": "Hello World"} -..note:: +.. note:: To use the json component, you need to include it in your config: @@ -134,8 +134,8 @@ See Also -------- - :doc:`index` -- :apiref:`http_request/http_request.h` -- :apiref:`json/json_util.h` +- :apiref:`http_request ` +- :apiref:`json_util ` - `ArduinoJson `__ - :ghedit:`Edit` From 4f6f53bad0fe2da7172ea8b1f6f7de5d7d8fe7e8 Mon Sep 17 00:00:00 2001 From: Chad Matsalla <48810546+ChadMatsalla@users.noreply.github.com> Date: Wed, 23 Jul 2025 10:28:14 -0600 Subject: [PATCH 3/4] Formatting changes --- components/json.rst | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/components/json.rst b/components/json.rst index 19572d018d..768e0964e5 100644 --- a/components/json.rst +++ b/components/json.rst @@ -61,11 +61,7 @@ Example 2: Simple JSON: .. note:: - To use the json component, you need to include it in your config: - - .. code-block:: yaml - - json: + 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: ------------- From be2c30e543fbe1ec4bdc2b7bec558e496f872a06 Mon Sep 17 00:00:00 2001 From: Chad Matsalla <48810546+ChadMatsalla@users.noreply.github.com> Date: Wed, 23 Jul 2025 10:32:52 -0600 Subject: [PATCH 4/4] Formatting changes --- components/json.rst | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/components/json.rst b/components/json.rst index 768e0964e5..06b14af2d7 100644 --- a/components/json.rst +++ b/components/json.rst @@ -61,7 +61,7 @@ Example 2: Simple JSON: .. 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:`. + 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: ------------- @@ -130,8 +130,8 @@ See Also -------- - :doc:`index` -- :apiref:`http_request ` -- :apiref:`json_util ` +- :apiref:`API Reference: http_request ` +- :apiref:`API Reference: json_util ` - `ArduinoJson `__ - :ghedit:`Edit`