Skip to content

Nitrite/Java: Is there a way to import a json file automatically that has an array of json objects in it? #39

Answered by anidotnet
timmolter asked this question in Q&A
Discussion options

You must be logged in to vote

You need to write a parser for it to convert it to an array of Documents and load it into a collection. You can take a look at this code for parsing https://github.com/nitrite/nitrite-java/blob/5fdc8f0f83057d946a56790973a0143e634ed8e8/nitrite/src/test/java/org/dizitart/no2/TestUtil.java#L79

Replies: 0 comments 2 replies

Comment options

You must be logged in to vote
1 reply
@timmolter
Comment options

Answer selected by timmolter
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
nitrite-java Nitrite for Java
2 participants