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

Re: Strings

Expand Messages
  • jemptymethod
    ... I don t think this is an error in the ... spec .... I can think of at least one other language that disallows unquoted reserved words as keys (Lua), and
    Message 1 of 12 , Jan 14, 2006
    • 0 Attachment
      --- In json@yahoogroups.com, "Douglas Crockford" <douglas@c...> wrote:
      >
      > JSON requires that keys be quoted because of an error in the
      > ECMAScript spec that disallows the use of unquoted reserved words as
      > keys. The list of reserved words is surprisingly long and difficult to
      > remember. The best practice is to always quote keys.

      I don't think this is "an error in the ... spec" .... I can think of
      at least one other language that disallows unquoted reserved words as
      keys (Lua), and there are others I'm certain
    Your message has been successfully submitted and would be delivered to recipients shortly.