W3C home > Mailing lists > Public > public-script-coord@w3.org > April to June 2014

[Bug 25986] New: Signify JSON as a return value

From: <bugzilla@jessica.w3.org>
Date: Thu, 05 Jun 2014 07:41:06 +0000
To: public-script-coord@w3.org
Message-ID: <bug-25986-3890@http.www.w3.org/Bugs/Public/>
https://www.w3.org/Bugs/Public/show_bug.cgi?id=25986

            Bug ID: 25986
           Summary: Signify JSON as a return value
           Product: WebAppsWG
           Version: unspecified
          Hardware: PC
                OS: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: WebIDL
          Assignee: cam@mcc.id.au
          Reporter: annevk@annevk.nl
        QA Contact: public-webapps-bugzilla@w3.org
                CC: mike@w3.org, public-script-coord@w3.org

Since IDL also helps (and I realize that it does not do this for everyone and
that can improve upon it) with making object behavior more clear, it would be
nice if there was a way to identify JSON other than using object or any.

Both XMLHttpRequest and fetch() will be able to return JSON objects.
XMLHttpRequest uses any for response. fetch() will have to do the same for its
Promise<> returned from bodyAs().

-- 
You are receiving this mail because:
You are on the CC list for the bug.
Received on Thursday, 5 June 2014 07:41:08 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 17:14:21 UTC