Snippets Collections
def groovyObject
String json

// Groovy -> JSON
import groovy.json.JsonOutput
json = JsonOutput.prettyPrint(JsonOutput.toJson(groovyObject))

// Quick println
println groovy.json.JsonOutput.prettyPrint(groovy.json.JsonOutput.toJson(groovyObject))

// JSON -> Groovy
import groovy.json.JsonSlurper
def jsonSlurper = new JsonSlurper()
groovyObject = jsonSlurper.parseText(json)

Mon Jun 19 2023 10:05:19 GMT+0000 (Coordinated Universal Time)

#postgres #postgresql #percentile #median #average #duration

Save snippets that work with our extensions

Available in the Chrome Web Store Get Firefox Add-on Get VS Code extension