- From: Tobie Langel <notifications@github.com>
- Date: Mon, 06 Mar 2017 09:24:32 -0800
- To: heycam/webidl <webidl@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Monday, 6 March 2017 17:25:04 UTC
tobie commented on this pull request.
> @@ -1985,6 +1989,124 @@ The following extended attributes are applicable to operation arguments:
"void"
</pre>
+<h5 id="idl-tojson-operation">toJSON</h5>
+
+By declaring a “toJSON” [=regular operation=],
+an [=interface=] specifies how to convert the objects that implement it to [=JSON values=].
+
+The “toJSON” [=regular operation=] is reserved for this usage.
+It must take zero arguments and return a [=JSON value=].
JSON type it is.
--
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/heycam/webidl/pull/323#discussion_r104471269
Received on Monday, 6 March 2017 17:25:04 UTC