"org.json.JSONArray implements Serializable": What's the best option to achieve this?
Posted
by Daxon
on Stack Overflow
See other posts from Stack Overflow
or by Daxon
Published on 2010-01-09T22:52:02Z
Indexed on
2010/04/17
3:03 UTC
Read the original article
Hit count: 388
I am using Grails Webflow, what ever object I pass to a view, it must be Serialized. My domain models "implement Serializable", so they work.
The problem is when I get a response from a WebService. It is of the org.json.JSONArray class.
I just want to pass the whole Array over to the view yet it doesn't implement Serializable, so it fails,
Any thoughts on how I can pass this, or my best option?
Can I just edit the source of the org.json library and make every class "imp Serializable"?
Or process the result into Domain objects that do "imp Serializable"
© Stack Overflow or respective owner