jansson/test/suites
W. Trevor King 1d513d063a pack_unpack: List unrecognized keys in strict unpacking
Otherwise figuring out what's wrong with your JSON can be tricky,
especially if you're using a single fmt string to validate a large,
complicated schema.

The comma delimiting will make separating keys that contain commas
difficult.  For example:

  {"foo, bar": true, "baz": false}

will generate errors like:

  2 object item(s) left unpacked: foo, bar, baz

but that seems like a small enough corner case to not be worth much
worrying.

I wanted to find a way to handle this without have_unrecognized_keys,
but the strbuffer tooling makes it look like I shouldn't be reaching
in to do things like:

  strbuffer_t unrecognized_keys;
  unrecognized_keys.value = NULL;

and then using 'unrecognized_keys.value == NULL' in place of
have_unrecognized_keys.
2015-12-22 10:05:31 -08:00
..
api pack_unpack: List unrecognized keys in strict unpacking 2015-12-22 10:05:31 -08:00
encoding-flags Add missing tests for JSON_REAL_PRECISION 2014-05-07 08:19:39 +03:00
invalid Add a test case for \u0000 2014-12-19 07:57:33 +02:00
invalid-unicode Update copyrights for 2014 2014-01-28 09:16:05 +02:00
valid Parse subnormal numbers correctly 2014-08-27 07:59:52 +03:00
.gitattributes Always use LF as line ending so that we don't get any problems with line 2013-03-07 16:12:07 +01:00
Makefile.am Remove invalid subdirs from test/suites/Makefile.am 2011-02-25 21:09:04 +02:00