Interface I_CmsJspJsonContext

All Known Implementing Classes:
CmsJspTagJsonArray, CmsJspTagJsonObject

public interface I_CmsJspJsonContext
Interface implemented by JSON tags.

Used by nested tags to add values to the JSON being constructed.

  • Method Summary

    Modifier and Type
    Method
    Description
    void
    addValue(String key, Object val)
    Adds a value to the JSON value being constructed.
  • Method Details

    • addValue

      void addValue(String key, Object val) throws javax.servlet.jsp.JspException
      Adds a value to the JSON value being constructed.

      For a JSON object, the key must be not null, and for a JSON array, it must always be null.

      Parameters:
      key - the key (or null)
      val - the value to add
      Throws:
      javax.servlet.jsp.JspException - in case the value could not be added