Groovy web console

subscribe to the feed Subscribe
to this
site

json

Published 2 months ago by Ram with tags json
Actions  ➤ Edit in console Back to console Show/hide line numbers View recent scripts
def jsonBuilder = new groovy.json.JsonBuilder()
jsonBuilder(
isbn: '0321774094',
title: 'Scala for the Impatient',
author: 'Cay S. Horstmann-1',
publisher: 'Addison-Wesley Professional')
//println("Using just named arguments")
println(jsonBuilder.toPrettyString())