File tree Expand file tree Collapse file tree 1 file changed +4
-19
lines changed Expand file tree Collapse file tree 1 file changed +4
-19
lines changed Original file line number Diff line number Diff line change @@ -574,9 +574,10 @@ <h3>
574
574
< p >
575
575
It's expected that data in a < a > PaymentResponse</ a > will be POSTed
576
576
back to a server for processing. To make this as easy as possible,
577
- < a > PaymentResponse</ a > provides a < a > toJSON()</ a > method that
578
- serializes the object directly into JSON. This makes it trivial to
579
- POST the resulting JSON back to a server using the [[[fetch]]]:
577
+ < a > PaymentResponse</ a > can use the [=default toJSON steps=] (i.e.,
578
+ `.toJSON()`) to serializes the object directly into JSON. This makes
579
+ it trivial to POST the resulting JSON back to a server using the
580
+ [[[fetch]]]:
580
581
</ p >
581
582
< pre class ="example js " title ="POSTing with `fetch()` ">
582
583
async function doPaymentRequest() {
@@ -2404,14 +2405,6 @@ <h2>
2404
2405
</ li >
2405
2406
</ ol >
2406
2407
</ section >
2407
- < section >
2408
- < h2 >
2409
- < dfn > toJSON()</ dfn > method
2410
- </ h2 >
2411
- < p >
2412
- When called, runs [[WEBIDL]]'s < a > default toJSON operation</ a > .
2413
- </ p >
2414
- </ section >
2415
2408
< section >
2416
2409
< h2 >
2417
2410
< dfn > country</ dfn > attribute
@@ -3302,14 +3295,6 @@ <h3>
3302
3295
</ pre >
3303
3296
</ section >
3304
3297
</ section >
3305
- < section >
3306
- < h2 >
3307
- < dfn > toJSON()</ dfn > method
3308
- </ h2 >
3309
- < p >
3310
- When called, runs [[WEBIDL]]'s < a > default toJSON operation</ a > .
3311
- </ p >
3312
- </ section >
3313
3298
< section >
3314
3299
< h2 >
3315
3300
< dfn > methodName</ dfn > attribute
You can’t perform that action at this time.
0 commit comments