diff --git a/src/main/java/us/monoid/web/JSONResource.java b/src/main/java/us/monoid/web/JSONResource.java index 11ec71ca..60863a9 100644 --- a/src/main/java/us/monoid/web/JSONResource.java +++ b/src/main/java/us/monoid/web/JSONResource.java @@ -34,6 +34,13 @@ public JSONArray array() throws IOException, JSONException { return (JSONArray)json; } + /** + /* Parse and return a boolean value + /* + public boolean bool() throws IOException, JSONException { + return (boolean)unmarshal(); + } + /** * Parse and return JSON object. Parsing is done only once after which the inputStrem is at EOF. * @return the JSON object