@groovy.transform.CompileStatic @groovy.transform.InheritConstructors abstract class JsonViewTemplate extends AbstractWritableScript
All JSON views subclass this superclass
Fields inherited from class | Fields |
---|---|
class AbstractWritableScript |
log |
Type | Name and description |
---|---|
java.io.Writer |
doWrite(java.io.Writer out) |
StreamingJsonBuilder |
json(groovy.lang.Closure callable) TODO: When Groovy 2.4.5 go back to JsonBuilder from groovy-json |
StreamingJsonBuilder |
json(java.lang.Iterable iterable) |
StreamingJsonBuilder |
json(java.util.Map map) |
StreamingJsonBuilder |
json(JsonUnescaped unescaped) Print unescaped json directly |
StreamingJsonBuilder |
json(JsonWritable writable) Print unescaped json directly |
StreamingJsonBuilder |
json(java.lang.Iterable iterable, groovy.lang.Closure callable) TODO: When Groovy 2.4.5 go back to JsonBuilder from groovy-json |
StreamingJsonBuilder |
json(java.lang.Object... args) |
Methods inherited from class | Name |
---|---|
class AbstractWritableScript |
doWrite, getModelTypes, getOut, setModelTypes, writeTo |
class groovy.lang.Script |
groovy.lang.Script#invokeMethod(java.lang.String, java.lang.Object), groovy.lang.Script#evaluate(java.lang.String), groovy.lang.Script#evaluate(java.io.File), groovy.lang.Script#getBinding(), groovy.lang.Script#setBinding(groovy.lang.Binding), groovy.lang.Script#println(), groovy.lang.Script#println(java.lang.Object), groovy.lang.Script#run(java.io.File, [Ljava.lang.String;), groovy.lang.Script#run(), groovy.lang.Script#setProperty(java.lang.String, java.lang.Object), groovy.lang.Script#getProperty(java.lang.String), groovy.lang.Script#print(java.lang.Object), groovy.lang.Script#printf(java.lang.String, java.lang.Object), groovy.lang.Script#printf(java.lang.String, [Ljava.lang.Object;), groovy.lang.Script#getMetaClass(), groovy.lang.Script#setMetaClass(groovy.lang.MetaClass), groovy.lang.Script#wait(long, int), groovy.lang.Script#wait(long), groovy.lang.Script#wait(), groovy.lang.Script#equals(java.lang.Object), groovy.lang.Script#toString(), groovy.lang.Script#hashCode(), groovy.lang.Script#getClass(), groovy.lang.Script#notify(), groovy.lang.Script#notifyAll() |
TODO: When Groovy 2.4.5 go back to JsonBuilder from groovy-json
Print unescaped json directly
unescaped
- The unescaped JSON produced from templatesPrint unescaped json directly
writable
- The unescaped JSON produced from templatesTODO: When Groovy 2.4.5 go back to JsonBuilder from groovy-json