{"action":"created","issue":{"url":"https://api.github.com/repos/javaee/jsonb-spec/issues/81","repository_url":"https://api.github.com/repos/javaee/jsonb-spec","labels_url":"https://api.github.com/repos/javaee/jsonb-spec/issues/81/labels{/name}","comments_url":"https://api.github.com/repos/javaee/jsonb-spec/issues/81/comments","events_url":"https://api.github.com/repos/javaee/jsonb-spec/issues/81/events","html_url":"https://github.com/javaee/jsonb-spec/issues/81","id":316582160,"number":81,"title":"LEXICOGRAPHICAL property order is under-specified","user":{"login":"cyberphone","id":8044211,"avatar_url":"https://avatars0.githubusercontent.com/u/8044211?v=4","gravatar_id":"","url":"https://api.github.com/users/cyberphone","html_url":"https://github.com/cyberphone","followers_url":"https://api.github.com/users/cyberphone/followers","following_url":"https://api.github.com/users/cyberphone/following{/other_user}","gists_url":"https://api.github.com/users/cyberphone/gists{/gist_id}","starred_url":"https://api.github.com/users/cyberphone/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cyberphone/subscriptions","organizations_url":"https://api.github.com/users/cyberphone/orgs","repos_url":"https://api.github.com/users/cyberphone/repos","events_url":"https://api.github.com/users/cyberphone/events{/privacy}","received_events_url":"https://api.github.com/users/cyberphone/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2018-04-22T14:09:46Z","updated_at":"2018-05-17T20:43:43Z","closed_at":null,"author_association":"NONE","body":"Or to be more correct; if the lexicographical sorting order is going to be of any utility* it could benefit by a more detailed definition.  Here is an attempt creating such:\r\nhttps://cyberphone.github.io/doc/security/draft-rundgren-json-canonicalization-scheme.html#json.sorting.properties\r\n\r\nIn my Java-based JSON tools I use\r\n```java\r\nfor (String property : canonicalized ? new TreeSet<String>(object.properties.keySet()) : object.properties.keySet()) {\r\n```\r\nwhich complies with the specification above.  Presumably your RI does that as well, right?\r\n\r\n*) It is not very clear what the _purpose_ is with this mode.  ECMAScript has an entirely different default property ordering mode which is based on the fairly simple idea that declaration/parsing order has a meaning which makes sense for objects like:\r\n```json\r\n{\r\n  \"name\": \"John Doe\",\r\n  \"address\": \"2000 Sunset Boulevard\",\r\n  \"city\": \"Los Angeles\",\r\n  \"zip\": \"90001\",\r\n  \"state\": \"CA\"\r\n}\r\n```\r\nUsing lexicographical ordering it would be serialized in the order \"address\", \"city\", \"name\", \"state\" and \"zip\", which adds fuzziness to the data from a human (developer or technical support), perspective."},"comment":{"url":"https://api.github.com/repos/javaee/jsonb-spec/issues/comments/390005058","html_url":"https://github.com/javaee/jsonb-spec/issues/81#issuecomment-390005058","issue_url":"https://api.github.com/repos/javaee/jsonb-spec/issues/81","id":390005058,"user":{"login":"rmannibucau","id":1249546,"avatar_url":"https://avatars0.githubusercontent.com/u/1249546?v=4","gravatar_id":"","url":"https://api.github.com/users/rmannibucau","html_url":"https://github.com/rmannibucau","followers_url":"https://api.github.com/users/rmannibucau/followers","following_url":"https://api.github.com/users/rmannibucau/following{/other_user}","gists_url":"https://api.github.com/users/rmannibucau/gists{/gist_id}","starred_url":"https://api.github.com/users/rmannibucau/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rmannibucau/subscriptions","organizations_url":"https://api.github.com/users/rmannibucau/orgs","repos_url":"https://api.github.com/users/rmannibucau/repos","events_url":"https://api.github.com/users/rmannibucau/events{/privacy}","received_events_url":"https://api.github.com/users/rmannibucau/received_events","type":"User","site_admin":false},"created_at":"2018-05-17T20:43:43Z","updated_at":"2018-05-17T20:43:43Z","author_association":"NONE","body":"Rephrase it if you want, i agree it is not a good phrasing. Point was to explicit that 1_foo, 11_nd, 2_xx will be sorted by a straiggt comparison on chars and explain the not iso chars handling too."}}
{"actor":{"display_login":"rmannibucau"}}