392Re: [json] java/org.json.JSONString
- Jun 3, 2006Douglas Crockford wrote:
> I have added a JSONString interface. A class implementing it canOn that page:
> customize the JSON serialization of its instances.
> If toJSONString throws any exception, or returns a non-string result, thenThis seems like a dangerous masking of errors. If these conditions occur,
> the string value will be obtained the default way.
I would think the error should propagate, and the serialization to JSON should
fail. What am I missing?
Text by me above is hereby placed in the public domain
- << Previous post in topic Next post in topic >>