def builder = new groovy.json.JsonBuilder() def myMap = [:] myMap.put('name', 'Dynamically generated approval Pprocess') myMap.put('rootActivity', ['type':'graph']) myMap['rootActivity'] += ['name':'auto']
builder.call( myMap )
println builder.toPrettyString()
No comments:
Post a Comment