Hi,

xybrek wrote:

> this.toJSONString returns a JSON string, a well-formatted json string.

that's what I already guessed, but I don't understand what the method 
actually does and what it produces. So, how do you create this JSON (with 
XStream) and how does it look like?

> "the_whole_json_stuff" was just my way of  asking to actually how to get
> the deserialize the whole json string without actually specifying a node
> in the string like:
> 
> xstream.alias("product", Product.class);

This is the part, where I don't understand your question.

> So how do you deserialize a JSON string with XStream?

If you question actually is, how to deserialize from an arbitrary JSOn 
string to Java object, that the answer is simple: You don't!

Even with XML, XStream will deserialize what it writes. If the written 
format does not match your requirements, you have to setup the XStream 
instance until it matches.

The same applies for JSON with the additional limitations.

- Jörg


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

    http://xircles.codehaus.org/manage_email


Reply via email to