jansson/test/suites/encoding-flags
Petri Lehtinen f18ef5144a 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.
2010-02-11 20:48:56 +02:00
..
array Enhance tests 2009-12-21 12:50:49 +02:00
compact-array Enhance tests 2009-12-21 12:50:49 +02:00
compact-object Enhance tests 2009-12-21 12:50:49 +02:00
ensure-ascii Enhance tests 2009-12-21 12:50:49 +02:00
indent-array Enhance tests 2009-12-21 12:50:49 +02:00
indent-compact-array Enhance tests 2009-12-21 12:50:49 +02:00
indent-compact-object Enhance tests 2009-12-21 12:50:49 +02:00
indent-object Enhance tests 2009-12-21 12:50:49 +02:00
object Enhance tests 2009-12-21 12:50:49 +02:00
preserve-order Implement JSON_PRESERVE_ORDER encoding flag 2010-02-11 20:48:56 +02:00
sort-keys Implement JSON_SORT_KEYS encoding flag 2009-12-16 23:12:39 +02:00
run Add year 2010 to copyright notices 2010-02-02 21:26:11 +02:00