class JsonMapper {

    public String toJson(Object body) {
        for (int i = 1; ; i++) {
            try {
                return this.compact.toJson(body);
            } catch (IllegalStateException e) {
                handleIllegalStateException(e, i);
            }
        }
    }

    public  JsonMapper();
    public  JsonMapper(Consumer<GsonBuilder> gsonConfigCallback);
    public  JsonMapper(Gson compact, Gson compactSensitive);

}