Name |
JSON Plugin |
---|---|
Publisher |
Apache Struts |
License |
Open Source (ASL2) |
Compatibility |
Struts 2.1.6 or later |
Homepage |
The JSON plugin is bundled with Struts since 2.1.7+. The plugin at Google Code has been deprecated.
Overview
The JSON plugin provides a "json" result type that serializes actions into JSON. The serialization process is recursive, meaning that the whole object graph, starting on the action class (base class not included) will be serialized (root object can be customized using the "root" attribute). If the interceptor is used, the action will be populated from the JSON content in the request, these are the rules of the interceptor: