Uploaded image for project: 'Tapestry 5'
  1. Tapestry 5
  2. TAP5-2349

JSONObject (& JSONArray) should not be final, to allow json-based type safety that interacts well with Tapestry

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Resolved
    • Minor
    • Resolution: Invalid
    • 5.4
    • None
    • tapestry-json

    Description

      For example, one might want to make a special type to communicate with the client-side page:

      class AlertMessage extends JSONObject
      {
          AlertMessage() { put("type", "alert"); }
      
          public void withMessage(String message)
          {
              put("message", message);
          }
      }
      

      ...such would minimize the proliferation of the field name strings, allow passing custom json-backed types to various pages & services, etc.

      Attachments

        Activity

          People

            Unassigned Unassigned
            rhailey Robert Hailey
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: