I'm pulling json from the Instagram API using a curl request. I want to cache this json to use from a mapping application (javascript).
Should I just pull straight from the API and cache the json, or is there some advantage to decoding it, doing something with the data, then re-encoding the json?
I was explaining this situation to a developer friend and he said something about decoding, cycling through the data, then re-encoding.
Other than changing the format of the data somehow -- which I thought of doing but decided to do client-side instead -- what's the advantage of doing it this way?