Files
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
..
2015-10-05 14:00:44 +02:00
2014-01-28 09:16:05 +02:00
2014-02-11 14:49:15 +02:00
2015-08-26 17:32:55 +03:00
2015-10-12 16:11:56 +02:00
2014-05-05 15:40:41 +04:00
2014-10-02 13:10:45 +03:00
2014-01-28 09:16:05 +02:00
2014-12-19 08:35:46 +02:00
2014-12-19 08:35:46 +02:00
2014-08-27 07:59:52 +03:00
2014-01-28 09:16:05 +02:00
2014-02-11 14:49:15 +02:00
2014-04-08 15:57:58 +00:00