Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migration of unmigrated content due to installation of a new plugin

Name

JSON Plugin

Publisher

Apache Struts

License

Open Source (ASL2)

Compatibility

Struts 2.1.6 or later

Homepage

http://cwiki.apache.org/confluence/display/WW/JSON+Plugin

Wiki Markup
{rate:title=Rating|theme=dynamic}

Warning

The JSON plugin is bundled with Struts since 2.1.7+. The plugin at Google Code has been deprecated.

Overview

The JSON plugin

Excerpt

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: