Throw exception when json_decode() of remote response fails