Loading ...
Sorry, an error occurred while loading the content.

392Re: [json] java/org.json.JSONString

Expand Messages
  • Mark Miller
    Jun 3, 2006
      Douglas Crockford wrote:
      > 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 result, then
      > the string value will be obtained the default way.

      This seems like a dangerous masking of errors. If these conditions occur,
      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

      Cheers,
      --MarkM
    • Show all 3 messages in this topic