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 descriptio

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\": \"simpl

Re: Struts 2 JSON plugin change in finding the target action instance problem Pavel Ilyushko Original Poster Greenhorn Joined: Nov 05, 2014 Posts: 1

2014-11-05 Thread Lukasz Lenart
2014-11-05 13:41 GMT+01:00 Pavel Ilyushko : > Hi there! > > Thanks for a swift reply. > > Actually, re-defining the root is what I applied as a work-around. > > So in my struts.xml I have this (to fix setting the parameters on the > action): > > > action >

Re: Struts 2 JSON plugin change in finding the target action instance problem Pavel Ilyushko Original Poster Greenhorn Joined: Nov 05, 2014 Posts: 1

2014-11-05 Thread Pavel Ilyushko
Hi there! Thanks for a swift reply. Actually, re-defining the root is what I applied as a work-around. So in my struts.xml I have this (to fix setting the parameters on the action): action and also for each json action type I have this (to

Re: Struts 2 JSON plugin change in finding the target action instance problem Pavel Ilyushko Original Poster Greenhorn Joined: Nov 05, 2014 Posts: 1

2014-11-05 Thread Ɓukasz Lenart
You can redefine root http://struts.apache.org/release/2.3.x/docs/json-plugin.html#JSONPlugin-RootObject 2014-11-05 12:13 GMT+01:00 Pavel Ilyushko : > Hello there! > > Recently I've upgraded our struts2 framework and its related plugins (eg: > json plugin) from version 2.1.8 to version 2.3.16.3.

Re: Struts 2 JSON plugin change in finding the target action instance problem Pavel Ilyushko Original Poster Greenhorn Joined: Nov 05, 2014 Posts: 1

2014-11-05 Thread Lukasz Lenart
You can re-define root http://struts.apache.org/release/2.3.x/docs/json-plugin.html#JSONPlugin-RootObject 2014-11-05 12:13 GMT+01:00 Pavel Ilyushko : > Hello there! > > Recently I've upgraded our struts2 framework and its related plugins (eg: > json plugin) from version 2.1.8 to version 2.3.16.3.

Struts 2 JSON plugin change in finding the target action instance problem Pavel Ilyushko Original Poster Greenhorn Joined: Nov 05, 2014 Posts: 1

2014-11-05 Thread Pavel Ilyushko
Hello there! Recently I've upgraded our struts2 framework and its related plugins (eg: json plugin) from version 2.1.8 to version 2.3.16.3. Now I'm having problems in using the json plugin while making json requests and returning the json responses. The problem is that the parameter values passe

Struts 2 JSON plugin

2010-01-18 Thread Artashes Hovasapyan
Hi, I've just started using JSON plugin and noticed strange behaviour. It looks like JSON annotation fields are completely ignored by the plugin. My action looks like this: public class TestAction extends ActionSupport { private Date date; @JSON(format = "-MM-dd HH:mm:ss Z") publ