Class JsonSlurper

  • All Implemented Interfaces:
    groovy.lang.GroovyObject

    public class JsonSlurper
    extends groovy.lang.GroovyObjectSupport
    A Helper class modeled after XmlSlurper
    Author:
    Andres Almiray
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      JSON parse​(java.io.File file)  
      JSON parse​(java.io.InputStream input)  
      JSON parse​(java.io.Reader reader)  
      JSON parse​(java.lang.String uri)  
      JSON parse​(java.net.URL url)  
      JSON parseText​(java.lang.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​(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)