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

invalid json format

nothub opened this issue · comments

A json file I generated with jsondb has multiple top-level values and thus (afaik) is not a valid json document.
Is there a way to configure jsondb to create entries under a single top-level value?

Example:

{"schemaVersion":"1.0"}
{"id":"foo","nickname":"a","onlineTimeSeconds":0,"lastSeenMillis":0,"ignoreAfk":false,"movedToAfk":0}
{"id":"bar","nickname":"b","onlineTimeSeconds":0,"lastSeenMillis":0,"ignoreAfk":false,"movedToAfk":0}
{"id":"baz","nickname":"c","onlineTimeSeconds":0,"lastSeenMillis":0,"ignoreAfk":false,"movedToAfk":0}

JsonDB is desiged this way, each file is equivalent to a collection, and each entry is equivalent to one document. There is no way to make the entire file a valid JSON document