I have some code that is deserializing an object from some JSON text:

Level level = (Level) xstream.fromXML( levelJson );

it's throwing an exception because the Levels in levelJson contain an
attribute 'foo' whereas the Level class has no foo member.

Is there a way to configure this process to ignore any attributes on objects
in the JSON that don't exist in the deserializing class?

Thanks,
-- 
View this message in context: 
http://old.nabble.com/how-to-ignore-absent-class-attributes-when-deserializing-tp32897653p32897653.html
Sent from the xstream - user mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Reply via email to