A simple wrapper to get a JSON object over HTTP