Class JsonRender


  • public final class JsonRender
    extends java.lang.Object
    Encodes json from an inspectable object.
    Author:
    arnej27959
    • Constructor Summary

      Constructors 
      Constructor Description
      JsonRender()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static java.lang.StringBuilder render​(Inspectable value, JsonRender.StringEncoder encoder)
      Renders the given value to the target stringbuilder with a given encoder.
      static java.lang.StringBuilder render​(Inspectable value, java.lang.StringBuilder target, boolean compact)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • JsonRender

        public JsonRender()
    • Method Detail

      • render

        public static java.lang.StringBuilder render​(Inspectable value,
                                                     java.lang.StringBuilder target,
                                                     boolean compact)
      • render

        public static java.lang.StringBuilder render​(Inspectable value,
                                                     JsonRender.StringEncoder encoder)
        Renders the given value to the target stringbuilder with a given encoder. This is useful to use an encoder where rendering of some value types is customized.