@Deprecated class JSONBuilder extends Object
Builds JSON data. Replaces grails.util.JSonBuilder.
| Type | Name and description |
|---|---|
static Object |
NODE_ELEMENT |
Object |
current |
Object |
nestingStack |
String |
property |
Object |
root |
| Constructor and description |
|---|
JSONBuilder() |
| Type Params | Return Type | Name and description |
|---|---|---|
|
List |
array(Closure c) |
|
JSON |
build(Closure c) |
|
Object |
getProperty(String propName) |
|
Object |
invokeMethod(String methodName) |
|
Object |
invokeMethod(String methodName, Object args) |
|
void |
setProperty(String propName, Object value) |