json decode the response so that the client doesn't have to