Thanks a million. At the moment i'm not using the interceptor but am deserializing my variable to a Map using your JSONUtil.deserialize and then populating my variable inside my action class (i've copied your JSONInterceptor.populateObject method).

I look forward to doing this in a cleaner way in the future via the interceptor but for the moment thanks for all these classes in the plugin. They do their job nicely.

max

Musachy Barroso wrote:
Nope, the interceptor doesn't have that, but it would be really easy to add,
I will add it on the next few days.

regards
musachy

On 6/27/07, Max Pimm <[EMAIL PROTECTED]> wrote:

I'm using the JSON plugin in one of my actions with the documentation
that i've found here
(http://cwiki.apache.org/S2PLUGINS/json-plugin.html). My case is a
little different as i am not using SMD. I receive calls to the action
with parameters passed via the query string. Most of these parameters do
not need to be deserialized but one of them does.

I've seen how to specify a root for serialization of the response

<result type="json">
  <param name="root">
    person.job
  </param>
</result>

But is there anyway to apply the same thing to deserialization in the
request?



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to