Get json data returned from the server