Quantcast
Channel: Spring Community Forums - NoSQL
Viewing all articles
Browse latest Browse all 128

Capturing/Returning JSON to MongoDB without binding to a model?

$
0
0
Hello,

We have a particular API our developers have been using here for years that they use to store arbitrary metadata about our users.

We recently converted it over to a JSON data structure, but, instead of just dumping this into a mysql table as a binary blob, i want to instead capture this in mongo so we can start making use of this customer metadata.

This is probably the only one case we have in our infrastructure where the data does not cleanly bind to a model.

Over the years this has been used and abused and it would be extremely difficult to write a POJO to model the data.

My question is: Can I store/retrieve this through my SpringMVC framework without assigning a model to it? I haven't tried playing with this yet and before I spun my wheels for hours, I figured I'd ask what the common approach to this problem is.

Thanks in advance.

Viewing all articles
Browse latest Browse all 128

Trending Articles