net.sf.json.groovy
Class JsonSlurper

java.lang.Object
  extended by groovy.lang.GroovyObjectSupport
      extended by net.sf.json.groovy.JsonSlurper
All Implemented Interfaces:
groovy.lang.GroovyObject

public class JsonSlurper
extends groovy.lang.GroovyObjectSupport

A Helper class modeled after XmlSlurper

Author:
Andres Almiray

Constructor Summary
JsonSlurper()
           
JsonSlurper(JsonConfig jsonConfig)
           
 
Method Summary
 JSON parse(File file)
           
 JSON parse(InputStream input)
           
 JSON parse(Reader reader)
           
 JSON parse(String uri)
           
 JSON parse(URL url)
           
 JSON parseText(String text)
           
 
Methods inherited from class groovy.lang.GroovyObjectSupport
getMetaClass, getProperty, invokeMethod, setMetaClass, setProperty
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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

parseText

public JSON parseText(String text)