Package net.sf.json.groovy
Class JsonSlurper
- java.lang.Object
-
- groovy.lang.GroovyObjectSupport
-
- net.sf.json.groovy.JsonSlurper
-
- All Implemented Interfaces:
groovy.lang.GroovyObject
public class JsonSlurper extends groovy.lang.GroovyObjectSupportA Helper class modeled after XmlSlurper- Author:
- Andres Almiray
-
-
Constructor Summary
Constructors Constructor Description JsonSlurper()JsonSlurper(JsonConfig jsonConfig)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description JSONparse(File file)JSONparse(InputStream input)JSONparse(Reader reader)JSONparse(String uri)JSONparse(URL url)JSONparseText(String text)
-
-
-
Constructor Detail
-
JsonSlurper
public JsonSlurper()
-
JsonSlurper
public JsonSlurper(JsonConfig jsonConfig)
-
-
Method Detail
-
parse
public JSON parse(File file) throws IOException
- Throws:
IOException
-
parse
public JSON parse(URL url) throws IOException
- Throws:
IOException
-
parse
public JSON parse(InputStream input) throws IOException
- Throws:
IOException
-
parse
public JSON parse(String uri) throws IOException
- Throws:
IOException
-
parse
public JSON parse(Reader reader) throws IOException
- Throws:
IOException
-
-