json: do not treat an empty body as an error