Class StrutsJSONWriter

java.lang.Object
org.apache.struts2.json.StrutsJSONWriter
All Implemented Interfaces:
JSONWriter

public class StrutsJSONWriter extends Object implements JSONWriter

Serializes an object into JavaScript Object Notation (JSON). If cyclic references are detected they will be nulled out.

This writer keeps per-write state in instance fields and is not thread-safe; obtain a fresh instance per write (the container serves it as a prototype bean). See WW-5650.