> > I have added a JSONString interface. A class implementing it can
> > 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.
> This seems like a dangerous masking of errors. If these conditions
> I would think the error should propagate, and the serialization to
You are right. It should throw a JSONException instead.