Class JSONResultFormatter

    • Field Detail

      • KEY_VIEWS

        public static final java.lang.String KEY_VIEWS
        The key for the views
        See Also:
        Constant Field Values
      • KEY_ROOT_CLASS

        public static final java.lang.String KEY_ROOT_CLASS
        The key for the root class
        See Also:
        Constant Field Values
      • KEY_MODEL_NAME

        public static final java.lang.String KEY_MODEL_NAME
        The key for the model name
        See Also:
        Constant Field Values
    • Constructor Detail

      • JSONResultFormatter

        public JSONResultFormatter()
    • Method Detail

      • formatAttributes

        protected void formatAttributes​(java.util.Map<java.lang.String,​java.lang.Object> attributes,
                                        java.lang.StringBuilder sb)
        This differs from the JSONFormatter implementation in that it will output a representation of all keys in the attributes map.
        Overrides:
        formatAttributes in class JSONFormatter
        Parameters:
        attributes - the attributes passed in from the containing output
        sb - The buffer containing the header so far.