@CompileStatic abstract class JsonViewWritableScript extends AbstractWritableScript implements JsonView
| Fields inherited from class | Fields |
|---|---|
class AbstractWritableScript |
log |
| Properties inherited from class | Properties |
|---|---|
class AbstractWritableScript |
modelTypes, out, sourceFile |
| Constructor and description |
|---|
JsonViewWritableScript() |
| Type Params | Return Type | Name and description |
|---|---|---|
|
Writer |
doWrite(Writer out) |
|
StreamingJsonBuilder |
json(Closure callable)Use StreamingJsonBuilder from groovy-json |
|
StreamingJsonBuilder |
json(Iterable iterable) |
|
StreamingJsonBuilder |
json(Map map) |
|
StreamingJsonBuilder |
json(JsonOutput.JsonUnescaped unescaped)Print unescaped json directly |
|
StreamingJsonBuilder |
json(JsonWritable writable)Print unescaped json directly |
|
StreamingJsonBuilder |
json(Iterable iterable, Closure callable)Use StreamingJsonBuilder from groovy-json |
|
StreamingJsonBuilder |
json(Object[] args) |
| Methods inherited from class | Name |
|---|---|
class AbstractWritableScript |
doWrite, getModelTypes, getOut, setModelTypes, writeTo |
Use StreamingJsonBuilder from groovy-json
callable - the closurePrint unescaped json directly
unescaped - The unescaped JSON produced from templatesPrint unescaped json directly
writable - The unescaped JSON produced from templatesUse StreamingJsonBuilder from groovy-json