Class JsonSerializer


  • public class JsonSerializer
    extends java.lang.Object
    Utility class for serializing node and property states to JSON.
    • Field Detail

      • DEFAULT_FILTER_EXPRESSION

        public static final java.lang.String DEFAULT_FILTER_EXPRESSION
        See Also:
        Constant Field Values
    • Constructor Detail

      • JsonSerializer

        public JsonSerializer​(int depth,
                              long offset,
                              int maxChildNodes,
                              java.lang.String filter,
                              BlobSerializer blobs)
      • JsonSerializer

        public JsonSerializer​(JsopWriter json,
                              int depth,
                              long offset,
                              int maxChildNodes,
                              java.lang.String filter,
                              BlobSerializer blobs)
      • JsonSerializer

        public JsonSerializer​(JsopWriter json,
                              int depth,
                              long offset,
                              int maxChildNodes,
                              java.lang.String filter,
                              BlobSerializer blobs,
                              boolean catchExceptions)
    • Method Detail

      • serialize

        public void serialize​(NodeState node)
      • serialize

        public void serialize​(NodeState node,
                              java.lang.String basePath)
      • serialize

        public void serialize​(PropertyState property,
                              Type<?> type,
                              int index)
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object