> > I have added a JSONString interface. A class implementing it canresult, then
> > customize the JSON serialization of its instances.
> > http://www.json.org/java/index.html
> On that page:
> > If toJSONString throws any exception, or returns a non-string
> > the string value will be obtained the default way.occur,
> This seems like a dangerous masking of errors. If these conditions
> I would think the error should propagate, and the serialization toJSON should
You are right. It should throw a JSONException instead.