Add validation features to json_unpack()
authorPetri Lehtinen <petri@digip.org>
Mon, 24 Jan 2011 19:45:54 +0000 (21:45 +0200)
committerPetri Lehtinen <petri@digip.org>
Tue, 25 Jan 2011 06:53:55 +0000 (08:53 +0200)
commit2770dca2c091a9c5c898ff0922d905449111ff95
tree00d86508bae45ec3e5b80fe018bbe55313310217
parent6825c2c706276312593cfe3cb770df644a539c21
Add validation features to json_unpack()

* By default, json_unpack() now checks that all items of arrays and
  objects are unpacked. This is useful for validation.

* Add format specifier '*' to suppress this check for individual
  arrays and objects. '*' must appear as the last format specifier
  before the closing ']' or '}'.
src/jansson_private.h
src/pack_unpack.c
src/value.c