jansson/src
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
..
dump.c Format %x expects unsigned int, not int 2015-10-05 14:00:44 +02:00
error.c use snprintf and strncpy in place of sprintf and strcpy 2015-04-30 00:11:25 -07:00
hashtable_seed.c Three fixes for hashtable seeding on Windows 2014-02-15 17:11:11 +01:00
hashtable.c use snprintf and strncpy in place of sprintf and strcpy 2015-04-30 00:11:25 -07:00
hashtable.h Move the list member to the top of hashtable_pair struct 2014-12-10 07:41:41 +02:00
jansson_config.h.in Update copyrights for 2014 2014-01-28 09:16:05 +02:00
jansson_private.h Buildable with MS Compiler version >= 1900 2015-08-31 23:43:29 +02:00
jansson.def Merge branch '2.6' 2014-02-11 14:49:15 +02:00
jansson.h Add json_object_foreach_safe 2015-08-26 17:32:55 +03:00
load.c changed code from while to do/while 2015-10-12 16:11:56 +02:00
lookup3.h Remove unneeded undef 2014-05-05 15:40:41 +04:00
Makefile.am jansson 2.7 2014-10-02 13:10:45 +03:00
memory.c Update copyrights for 2014 2014-01-28 09:16:05 +02:00
pack_unpack.c pack_unpack: List unrecognized keys in strict unpacking 2015-12-22 10:05:31 -08:00
strbuffer.c Increase test coverage 2014-12-19 08:35:46 +02:00
strbuffer.h Increase test coverage 2014-12-19 08:35:46 +02:00
strconv.c Parse subnormal numbers correctly 2014-08-27 07:59:52 +03:00
utf.c Update copyrights for 2014 2014-01-28 09:16:05 +02:00
utf.h Merge branch '2.6' 2014-02-11 14:49:15 +02:00
value.c use __sun instead of sun 2014-04-08 15:57:58 +00:00