aboutsummaryrefslogtreecommitdiff
path: root/CHANGES
diff options
context:
space:
mode:
authorPetri Lehtinen <petri@digip.org>2010-02-09 21:29:33 +0200
committerPetri Lehtinen <petri@digip.org>2010-02-11 20:48:56 +0200
commitf18ef5144a77ebdbe7285711884b217b86e2c3b6 (patch)
tree1153f7540a5c28fd0a92fbd52044f7e11f69ba4d /CHANGES
parent307167fb66e83946dca6d1b22bc43ae9fd406a16 (diff)
downloadjansson-f18ef5144a77ebdbe7285711884b217b86e2c3b6.zip
jansson-f18ef5144a77ebdbe7285711884b217b86e2c3b6.tar.gz
jansson-f18ef5144a77ebdbe7285711884b217b86e2c3b6.tar.bz2
Implement JSON_PRESERVE_ORDER encoding flag
With this encoding flag, the object key-value pairs in output are in the same order in which they were first inserted into the object. To make this possible, a key of an object is now a serial number plus a string. An object keeps an increasing counter which is used to assign serial number to the keys. Hashing, comparison and public API functions were changed to act only on the string part, i.e. the serial number is ignored everywhere else but in the encoder, where it's used to order object keys if JSON_PRESERVE_ORDER flag is used.
Diffstat (limited to 'CHANGES')
0 files changed, 0 insertions, 0 deletions