This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| @Grapes( | |
| @Grab(group='org.glassfish', module='javax.json', version='1.0.2') | |
| ) | |
| import java.io.FileReader | |
| import javax.json.Json | |
| import javax.json.JsonArray | |
| import javax.json.JsonBuilderFactory | |
| import javax.json.JsonNumber | |
| import javax.json.JsonObject | |
| import javax.json.JsonReader |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| @Grapes( | |
| @Grab(group='org.glassfish', module='javax.json', version='1.0.2') | |
| ) | |
| import groovy.json.DateFormatThreadLocal | |
| import groovy.json.JsonBuilder | |
| import groovy.json.JsonDelegate | |
| import java.text.SimpleDateFormat | |
| import javax.json.Json |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Object.metaClass { | |
| //indent | |
| indent << {String indentString, int indentLevel, boolean skipIndent -> | |
| (indentString * (skipIndent ? 0 : indentLevel)) + delegate | |
| } | |
| //prettyPrint | |
| prettyPrint << { -> | |
| delegate.prettyPrint(' ') | |
| } | |
| prettyPrint << {String indentString -> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| println "Hello ${args.join(',')}." |
OlderNewer