Then create an inner class within your Action that contains just the
information youbwant to include in the JSON and set it as the base object
to marshal.
   (*Chris*)
On Nov 3, 2011 12:59 PM, "Daniel Ruan" <danielr...@gmail.com> wrote:

> Thanks, everybody.
>
> I tried ignoreHierarchy, but got a Java reflection exception. Even if it
> worked, it would have include too many things I don't want.  According to
> the documentation, it "... serialize properties in all base classes (up to
> Object) ".
>
> I could try to use the excludeProperties parameter, but there will be too
> many properties to exclude.  In addition, if the super class is modified to
> have additional properties, it may break the JSON code without my
> knowledge.
>
> What I really wish is to be able to selectively include supper class
> properties, like syntax like"MyAction1.name1, MyAction2.name2".
>
> Cheers,
> Daniel
>

Reply via email to