Skip to content

Conversation

yasserzamani
Copy link
Member

No description provided.

@@ -367,6 +367,19 @@ given result add encoding param as below:
</result>
```

### Customizing the output

Since `2.5.14`, you can implement the `org.apache.struts2.json.JSONWriter` interface to customize the generated json response.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It is better to use a full product name, i.e. Since Struts 2.5.14 ...

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you; fixed :)

<struts>
<bean type="org.apache.struts2.json.JSONWriter" name="myJSONWriter" class="com.mycompany.MyJSONWriter"
scope="prototype"/>
<constant name="struts.json.writer" value="myJSONWriter"/>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@lukaszlenart
Copy link
Member

Cool, LGTM 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants