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', method: 'POST',
body: JSON.stringify({ body: JSON.stringify({
topic: "myhome", topic: "myhome",
message": "Somebody retweeted your tweet.", message: "Somebody retweeted your tweet.",
actions: [ actions: [
{ {
action: "view", action: "view",
@@ -1879,7 +1879,7 @@ And the same example using [JSON publishing](#publish-as-json):
method: 'POST', method: 'POST',
body: JSON.stringify({ body: JSON.stringify({
topic: "wifey", topic: "wifey",
message": "Your wife requested you send a picture of yourself.", message: "Your wife requested you send a picture of yourself.",
actions: [ actions: [
{ {
"action": "broadcast", "action": "broadcast",
@@ -2154,7 +2154,7 @@ And the same example using [JSON publishing](#publish-as-json):
method: 'POST', method: 'POST',
body: JSON.stringify({ body: JSON.stringify({
topic: "myhome", 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: [ actions: [
{ {
"action": "http", "action": "http",