From 185a84d722dd3b956ce703a6c8785f3025d1bd88 Mon Sep 17 00:00:00 2001
From: Flow <hi@flowfin.tech>
Date: Sat, 2 Jul 2022 11:43:01 +0100
Subject: [PATCH 1/2] docs: fix json

---
 _includes/rest/hooks.md | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/_includes/rest/hooks.md b/_includes/rest/hooks.md
index 6fe19762a..9e9161a77 100644
--- a/_includes/rest/hooks.md
+++ b/_includes/rest/hooks.md
@@ -219,8 +219,8 @@ and perform a `parse deploy` the usual way.
 ## Create function webhook
 To create a new function webhook post to <code class="highlighter-rouge"><span class="custom-parse-server-mount">/parse/</span>hooks/functions</code> with payload in the format
 
-```json
-{"functionName" : x, "url" : y}
+```jsonc
+{"functionName": "foo", "url": "https://api.example.com/foo"}
 ```
 
 Post example:

From 2a5206c861445296e9fbb7551a64166a7a03e677 Mon Sep 17 00:00:00 2001
From: Flow <hi@flowfin.tech>
Date: Sat, 2 Jul 2022 14:09:49 +0100
Subject: [PATCH 2/2] docs: prettify json

---
 _includes/rest/hooks.md | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/_includes/rest/hooks.md b/_includes/rest/hooks.md
index 9e9161a77..0db8f4a37 100644
--- a/_includes/rest/hooks.md
+++ b/_includes/rest/hooks.md
@@ -220,7 +220,10 @@ and perform a `parse deploy` the usual way.
 To create a new function webhook post to <code class="highlighter-rouge"><span class="custom-parse-server-mount">/parse/</span>hooks/functions</code> with payload in the format
 
 ```jsonc
-{"functionName": "foo", "url": "https://api.example.com/foo"}
+{
+  "functionName": "foo", 
+  "url": "https://api.example.com/foo"
+}
 ```
 
 Post example: