Bug 21098 - [XSLT 3.0] duplicate keys in JSON
Summary: [XSLT 3.0] duplicate keys in JSON
Status: CLOSED FIXED
Alias: None
Product: XPath / XQuery / XSLT
Classification: Unclassified
Component: XSLT 3.0 (show other bugs)
Version: Member-only Editors Drafts
Hardware: PC All
: P2 normal
Target Milestone: ---
Assignee: Michael Kay
QA Contact: Mailing list for public feedback on specs from XSL and XML Query WGs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-02-23 15:08 UTC by Michael Kay
Modified: 2013-04-23 10:09 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Michael Kay 2013-02-23 15:08:58 UTC
Tim Bray reminds us here

http://www.tbray.org/ongoing/When/201x/2013/02/21/JSON-Lesson

that some variants of JSON permit an object (map) to have duplicate keys. The spec for parse-json() needs to say something about this.
Comment 1 Michael Kay 2013-04-11 16:24:56 UTC
We reviewed this and decided that when parsing JSON we should allow the input to contain duplicates and if they exist, take the last as defined in ECMAScript.
Comment 2 Michael Kay 2013-04-23 10:09:24 UTC
The agreed rule has been added to the draft spec.