Answer the question
In order to leave comments, you need to log in
How to write json to mongodb?
You need to store data in mongodb in json format. I can’t figure out how to do this, I found an example of how to write a simple java object through crud.
It is necessary to use spring, the example was taken from here spring.io/guides/gs/accessing-data-mongodb
Answer the question
In order to leave comments, you need to log in
Read the documentation
mongodb.github.io/mongo-java-driver/2.13/getting-s...
In MongoDB, data is already stored in (B)JSON, in the example you gave a link to, everything is briefly described. Or do you want to achieve something different?
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question