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
-
-
Field Summary
Fields Modifier and Type Field Description private JsonConfigjsonConfig
-
Constructor Summary
Constructors Constructor Description JsonSlurper()JsonSlurper(JsonConfig jsonConfig)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description JSONparse(java.io.File file)JSONparse(java.io.InputStream input)JSONparse(java.io.Reader reader)JSONparse(java.lang.String uri)JSONparse(java.net.URL url)JSONparseText(java.lang.String text)
-
-
-
Field Detail
-
jsonConfig
private JsonConfig jsonConfig
-
-
Constructor Detail
-
JsonSlurper
public JsonSlurper()
-
JsonSlurper
public JsonSlurper(JsonConfig jsonConfig)
-
-
Method Detail
-
parse
public JSON parse(java.io.File file) throws java.io.IOException
- Throws:
java.io.IOException
-
parse
public JSON parse(java.net.URL url) throws java.io.IOException
- Throws:
java.io.IOException
-
parse
public JSON parse(java.io.InputStream input) throws java.io.IOException
- Throws:
java.io.IOException
-
parse
public JSON parse(java.lang.String uri) throws java.io.IOException
- Throws:
java.io.IOException
-
parse
public JSON parse(java.io.Reader reader) throws java.io.IOException
- Throws:
java.io.IOException
-
parseText
public JSON parseText(java.lang.String text)
-
-