A
A
ALTAIR952017-03-13 18:06:16
Java
ALTAIR95, 2017-03-13 18:06:16

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

2 answer(s)
P
Philipp, 2017-03-13
@ALTAIR95

Read the documentation
mongodb.github.io/mongo-java-driver/2.13/getting-s...

A
Alexander Kosarev, 2017-03-15
@jaxtr

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 question

Ask a Question

731 491 924 answers to any question