Re: How do i prevent Struts 2 json plugin from escaping already formated json?

2015-02-18 Thread Dave Newton
Don't use the JSON plugin? The point of it is to create JSON, but you
already have JSON.
On Feb 18, 2015 7:18 AM, "bavon mike"  wrote:

> I already have a json string like:
>
> {"name": "Simple name", "description": "simple description"}
>
> When using Struts 2 json plugin, it returns escaped string like:
>
> {\"name\": \"Simple name\", \"description\": \"simple description\"}
>
> How do i configure struts 2 plugin to avoid this escaping?
>
> Regards
> Mike
>


How do i prevent Struts 2 json plugin from escaping already formated json?

2015-02-18 Thread bavon mike
I already have a json string like:

{"name": "Simple name", "description": "simple description"}

When using Struts 2 json plugin, it returns escaped string like:

{\"name\": \"Simple name\", \"description\": \"simple description\"}

How do i configure struts 2 plugin to avoid this escaping?

Regards
Mike