# HG changeset patch # User Chris Cannam # Date 1606411728 0 # Thu Nov 26 17:28:48 2020 +0000 # Node ID ae04bfe3da886b0678223c488b162fe1dc9652dd # Parent 3ea6adb289e950b740569f7d93d2732f5b6362f9 Add note about object field order diff --git a/README.md b/README.md --- a/README.md +++ b/README.md @@ -30,6 +30,11 @@ float type (common but not guaranteed in SML) then we're pretty standard for a JSON parser + * For simplicity this implementation returns object fields in the + order in which they appear in the input, without checking for + duplicates. But JSON object fields are unordered, so callers + should take care not to accidentally rely on this + Copyright 2017 Chris Cannam. Parts based on the JSON parser in the Ponyo library by Phil Eaton. diff --git a/json.sml b/json.sml --- a/json.sml +++ b/json.sml @@ -2,7 +2,7 @@ (* Simple Standard ML JSON parser ============================== - https://bitbucket.org/cannam/sml-simplejson + https://hg.sr.ht/~cannam/sml-simplejson An RFC-compliant JSON parser in one SML file with no dependency on anything outside the Basis library. Also includes a simple @@ -30,6 +30,11 @@ float type (common but not guaranteed in SML) then we're pretty standard for a JSON parser + * For simplicity this implementation returns object fields in the + order in which they appear in the input, without checking for + duplicates. But JSON object fields are unordered, so callers + should take care not to accidentally rely on this + Copyright 2017 Chris Cannam. Parts based on the JSON parser in the Ponyo library by Phil Eaton.