Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6706173
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T07:29:21+00:00 2026-05-26T07:29:21+00:00

I was wondering what would be the best way to store JSON/XML responses. I’m

  • 0

I was wondering what would be the best way to store JSON/XML responses. I’m currently building an application that supports heavily on the SoundCloud API to fetch songs/playlists etc.

Here are some ideas I’ve come up with.

  1. Storing the results in a Relational Database and then using PHP to convert them to classes to make easy use of them throughout my application.
  2. Doing the above, only this time using my framework’s built-in ORM.
  3. Using a Document-Oriented Database. (ie. MongoDB, couchDB, …)
  4. Storing the JSON responses in a cache. (using my framework’s cache classes)

Can anyone care to shed some light on some of the advantages/disadvantages of using any of these methods?

Which one do you prefer?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T07:29:21+00:00Added an answer on May 26, 2026 at 7:29 am

    If you have a solid schema, that you wont think it will change, you might want to use relational database. You will need to parse the json and make objects out of the JSON response and using your framework you can persist it to database.

    If you think your schema will change use NoSQL.

    It also depends what will you do with this data. Are you going to search the nodes within JSON?
    You can also do a object to mongo mapping, you can either parse the JSON and store it as an object or you can store the JSON the way it is.

    Nice thing about NOSQL is that they support JSON pretty well in which they use BSON (Binary JSON).

    In terms of cache, IME, it should be used only for lookups, and actually, you cant search the cache. It s just for getting objects faster than going to database and getting it.

    Take a look at this:

    http://www.mongodb.org/display/DOCS/Inserting#Inserting-JSON

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm wondering what would be the best way to store math constants that are
I've been wondering what the best way to store data would be in my
I was wondering what would be the best way to store contact details of
i was wondering what would be the best way to code a browser plugin
I recently started learning backbone and was wondering what would be the best way
I was wondering, what would be the best way to validate an integer. I'd
I've been wondering what the best way to do this would be. I've got
Wondering what the best / good way of doing this would be in jQuery.
I am wondering what would be the best approach to store, for let's say
I'm wondering what would be the best way to group contacts by their company.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.