Enhance handling of circular references
authorPetri Lehtinen <petri@digip.org>
Thu, 15 Oct 2009 18:02:27 +0000 (21:02 +0300)
committerPetri Lehtinen <petri@digip.org>
Thu, 15 Oct 2009 18:02:27 +0000 (21:02 +0300)
commit4cd777712b1e4ec17dc9efcced80a90f83ec1915
treecca20833e8b55956be210f8cd285c387266817a2
parent79009e62c10bab0869d61edfaa6c813f03f027bc
Enhance handling of circular references

It's now an error to try to add an object or array to itself. The
encoder checks for circular references and fails with an error status
if one is detected.
doc/apiref.rst
src/dump.c
src/jansson_private.h
src/value.c
test/testprogs/test_array.c
test/testprogs/test_object.c