json(java.lang.String name, groovy.lang.Closure c)A name and a closure passed to a JSON builder will create a key with a JSON object

void

json(java.lang.String name, java.lang.Iterable coll, groovy.lang.Closure c)A name, a collection and closure passed to a JSON builder will create a root JSON array applying
the closure to each object in the collection

void

json(java.lang.String name, java.util.Map map, groovy.lang.Closure callable)If you use named arguments and a closure as last argument,
the key/value pairs of the map (as named arguments)
and the key/value pairs represented in the closure
will be merged together —
the closure properties overriding the map key/values
in case the same key is used.

If you use named arguments and a closure as last argument,
the key/value pairs of the map (as named arguments)
and the key/value pairs represented in the closure
will be merged together —
the closure properties overriding the map key/values
in case the same key is used.