Package org.apache.sling.commons.json.io
Class JSONRenderer.Options
- java.lang.Object
-
- org.apache.sling.commons.json.io.JSONRenderer.Options
-
- Enclosing class:
- JSONRenderer
public static class JSONRenderer.Options extends java.lang.Object
Rendering options
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
DEFAULT_CHILD_NAME_KEY
static java.lang.String
DEFAULT_CHILDREN_KEY
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description JSONRenderer.Options
withArraysForChildren(boolean b)
JSONRenderer.Options
withChildNameKey(java.lang.String key)
JSONRenderer.Options
withChildrenKey(java.lang.String key)
JSONRenderer.Options
withIndent(int n)
JSONRenderer.Options
withInitialIndent(int n)
-
-
-
Field Detail
-
DEFAULT_CHILDREN_KEY
public static final java.lang.String DEFAULT_CHILDREN_KEY
- See Also:
- Constant Field Values
-
DEFAULT_CHILD_NAME_KEY
public static final java.lang.String DEFAULT_CHILD_NAME_KEY
- See Also:
- Constant Field Values
-
-
Method Detail
-
withIndent
public JSONRenderer.Options withIndent(int n)
-
withInitialIndent
public JSONRenderer.Options withInitialIndent(int n)
-
withArraysForChildren
public JSONRenderer.Options withArraysForChildren(boolean b)
-
withChildNameKey
public JSONRenderer.Options withChildNameKey(java.lang.String key)
-
withChildrenKey
public JSONRenderer.Options withChildrenKey(java.lang.String key)
-
-