The classes org.json.JSONObject & org.json.JSONParserConfiguration are sligltly modified, to implement XPath 3.1 function fn:parse-json and fn:json-doc duplicate key handling option 'duplicates': 'use-first'.