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

29backslash double-quote

Expand Messages
  • jonschull5
    Aug 1, 2005
    • 0 Attachment
      Hi,

      Shouldn't it be possible to jsonize a string like this?

      {"doubleQuoteSurroundedBySpaces":" \" "}}'

      json.py and json.js both choke when trying to parse this

      SingleQuotes are OK
      o=JSON.parse('{"a":" \' "}')
      [object Object]
      o.toSource()
      ({a:" ' "})

      However...
      o=JSON.parse('{"a":" \" "}')
      JSONError: Bad object

      Is there no way to express the valid object {a:'"'}?
    • Show all 13 messages in this topic