r/databases • • Apr 12 '16

Storing JSON response from API

I have spent last few days getting familiar with differences in NoSQL and SQL database. Currently I am developing an app that obtains information from a REST API, the JSON it returns is currently 3300 lines in length. Each JSON contains lists of multiple results (dates, costs, destination) and is heavily nested (is that the right term?)

I am investigating what would be the best way to store these responses for later use. Queries that will be used include finding results within all JSON documents that are between dates or above/below certain costs, to/from destinations.

I understand NoSQL has it's limitations but am having a hard time understanding where they lay. Maybe I am overthinking it, but I am trying to find if I should extract data and place into SQL database, or, because I already have a JSON response, use a database that supports JSON already.

1 Upvotes

3 comments sorted by

View all comments

Show parent comment

1

u/mexican_restaurant Apr 13 '16

Seconding this. Mongo was built specifically for things like this, that are completely unstructured/schemaless. Mongo also happens to store documents in json format anyway...