Groovy web console

subscribe to the feed Subscribe
to this
site
JsonOutput Examble (via #groovywebconsole)
tweet this snippet Tweet
this
script

JsonOutput Examble

Published 4 months ago by NT
Actions  ➤ Edit in console Back to console Show/hide line numbers View recent scripts
import groovy.json.JsonOutput
def tokenValue = 'tokenValue'
def tokenSecret = 'tokenSecret'
def json = JsonOutput.toJson([requestToken: [token: tokenValue, secret: tokenSecret]])