diff --git a/src/restfulchecker/RestChecker.java b/src/restfulchecker/RestChecker.java index 41f44dc..c4c8272 100644 --- a/src/restfulchecker/RestChecker.java +++ b/src/restfulchecker/RestChecker.java @@ -209,13 +209,13 @@ if (js.getClass() == TextNode.class) { } else if (js.getClass() == ArrayNode.class) { - + } else { ObjectNode obj = (ObjectNode) js; obj.remove(fieldName); } } - }else { + } else { ObjectNode obj = (ObjectNode) json; obj.remove(fieldName); } @@ -233,19 +233,6 @@ return obj.toString(); } - // private JsonNode roopJsonResearch(JsonNode json) { - // for(JsonNode js:json) { - // if(js.getClass() == TextNode.class) { - // - // }else if(js.getClass() == ArrayNode.class){ - // ArrayNode array = (ArrayNode)js; - // js. - // return roopJsonResearch(js); - // }else { - // return js; - // } - // } - // } public enum Method { GET, POST, PUT, DELETE };