Skip to content

Commit 39caded

Browse files
authored
Change Markdown comment type from JSON to JSON5 to allow comments
1 parent a064a5c commit 39caded

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

_includes/cloudcode/cloud-code-advanced.md

+11-11
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,7 @@ end
206206

207207
Here's an example of the JSON data that would be sent in the request to this webhook:
208208

209-
```json
209+
```json5
210210
// Sent to webhook
211211
{
212212
"master": false,
@@ -225,14 +225,14 @@ Here's an example of the JSON data that would be sent in the request to this web
225225

226226
This response would indicate a success in the webhook:
227227

228-
```json
228+
```json5
229229
// Returned from the webhook on success
230230
{ "success": "Hello World!" }
231231
```
232232

233233
This response would indicate an error in the webhook:
234234

235-
```json
235+
```json5
236236
// Returned from the webhook on error
237237
{ "error": "Error message >:(" }
238238
```
@@ -275,7 +275,7 @@ end
275275

276276
Here's an example of the JSON data that would be sent in the request to this webhook:
277277

278-
```json
278+
```json5
279279
// Sent to webhook
280280
{
281281
"master": true,
@@ -287,7 +287,7 @@ Here's an example of the JSON data that would be sent in the request to this web
287287

288288
This response would indicate a success in the webhook:
289289

290-
```json
290+
```json5
291291
// Returned from the webhook on success
292292
{ "success": "User billed!" }
293293
```
@@ -310,7 +310,7 @@ For triggers, the following parameters are sent to your webhook.
310310

311311
To respond to a `beforeSave` request, send a JSON object with the key `error` or `success` set. This is the same as for Cloud functions, but there's an extra capability with `beforeSave` triggers. By returning an error, you will cancel the save request and the object will not be stored on Parse. You can also return a JSON object in this following format to override the values that will be saved for the object:
312312

313-
```json
313+
```json5
314314
{
315315
"className": "AwesomeClass",
316316
"existingColumn": "sneakyChange",
@@ -348,7 +348,7 @@ end
348348

349349
Here's an example of the JSON data that would be sent in the request to this webhook:
350350

351-
```json
351+
```json5
352352
// Sent to webhook
353353
{
354354
"master": false,
@@ -419,7 +419,7 @@ end
419419

420420
Here's an example of the JSON data that would be sent in the request to this webhook:
421421

422-
```json
422+
```json5
423423
// Sent to webhook
424424
{
425425
"master": false,
@@ -485,7 +485,7 @@ end
485485

486486
Here's an example of the JSON data that would be sent in the request to this webhook:
487487

488-
```json
488+
```json5
489489
// Sent to webhook
490490
{
491491
"master": false,
@@ -509,7 +509,7 @@ Here's an example of the JSON data that would be sent in the request to this web
509509

510510
This response would indicate a success in the webhook:
511511

512-
```json
512+
```json5
513513
// Returned from the webhook on success
514514
{ "success": true }
515515
```
@@ -554,7 +554,7 @@ end
554554

555555
Here's an example of the JSON data that would be sent in the request to this webhook:
556556

557-
```json
557+
```json5
558558
// Sent to webhook
559559
{
560560
"master": false,

0 commit comments

Comments
 (0)