Class JsonRenderer

java.lang.Object
org.apache.sling.servlets.get.impl.helpers.JsonRenderer
All Implemented Interfaces:
Renderer

public class JsonRenderer extends Object implements Renderer
The JsonRendererServlet renders the current resource in JSON on behalf of the DefaultGetServlet.
  • Field Details

    • INFINITY

      public static final String INFINITY
      Recursion level selector that means "all levels"
      See Also:
    • TIDY

      public static final String TIDY
      Selector that means "pretty-print the output
      See Also:
    • HARRAY

      public static final String HARRAY
      Selector that causes hierarchy to be rendered as arrays instead of child objects - useful to preserve the order of those child objects
      See Also:
    • INDENT_SPACES

      public static final int INDENT_SPACES
      How much to indent in tidy mode
      See Also:
  • Constructor Details

    • JsonRenderer

      public JsonRenderer(long maximumResults, boolean ecmaSupport)
  • Method Details