Details
-
New Feature
-
Status: Resolved
-
Minor
-
Resolution: Invalid
-
5.4
-
None
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.