Jsondb / jsondb-core

JsonDB a pure java database that stores its data as Json Files

Home Page:http://www.jsondb.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Recursive data structures. Cycles not supported

Hatzen opened this issue · comments

I noticed the library does not support cycling relations. Also this is not documented within the readme or the documentation page so i just want to write this done for anyone else is interesting in it.
This is a common to not be handled with json so i will close this issue.

It will throw an StackOverflowError excpetion:

java.lang.RuntimeException: com.fasterxml.jackson.databind.JsonMappingException: Infinite recursion (StackOverflowError) (through reference chain: de.hartz.software.parannoying.model.DeviceData1["deviceData1"]-
	at io.jsondb.Util.deepCopy(Util.java:187)
	at io.jsondb.JsonDBTemplate.insert(JsonDBTemplate.java:840)
	at io.jsondb.JsonDBTemplate.insert(JsonDBTemplate.java:827)
```