Merge pull request #1577 from KavyanshKhaitan2/patch-2

[Docs/publish] Fix JSON syntax for JS examples
This commit is contained in:
Philipp C. Heckel
2026-01-27 09:35:15 -05:00
committed by GitHub

View File

@@ -1619,7 +1619,7 @@ And the same example using [JSON publishing](#publish-as-json):
method: 'POST',
body: JSON.stringify({
topic: "myhome",
message": "Somebody retweeted your tweet.",
message: "Somebody retweeted your tweet.",
actions: [
{
action: "view",
@@ -1879,7 +1879,7 @@ And the same example using [JSON publishing](#publish-as-json):
method: 'POST',
body: JSON.stringify({
topic: "wifey",
message": "Your wife requested you send a picture of yourself.",
message: "Your wife requested you send a picture of yourself.",
actions: [
{
"action": "broadcast",
@@ -2154,7 +2154,7 @@ And the same example using [JSON publishing](#publish-as-json):
method: 'POST',
body: JSON.stringify({
topic: "myhome",
"message": "Garage door has been open for 15 minutes. Close it?",
message: "Garage door has been open for 15 minutes. Close it?",
actions: [
{
"action": "http",