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

Re: JSON -- rfc question -- Encoding

Expand Messages
  • Douglas Crockford
    ... None of the control characters can appear in JSON strings. You can use the u convention to represent them. A few of them, such as linefeed and tab, have
    Message 1 of 8 , Apr 14, 2007
    • 0 Attachment
      --- In json@yahoogroups.com, "Michael Schwarz" <michael.schwarz@...>
      wrote:

      > currently I have only something like \r, \n or \t, are those chars
      > allowed? Which control chars are you talking about? Thanks a lot.

      None of the control characters can appear in JSON strings. You can use
      the \u convention to represent them. A few of them, such as linefeed
      and tab, have more compact representations such as \n and \t. Take
      your pick.
    Your message has been successfully submitted and would be delivered to recipients shortly.