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

RE: [jslint] JSON

Expand Messages
  • Jakob Kruse
    Question: Did you really mean JSON object, or JavaScript object? JSLint will now complain if I have code such as this: ? var myJSON =
    Message 1 of 4 , Apr 26 2:47 AM
    • 0 Attachment
      Question: Did you really mean JSON object, or JavaScript object? JSLint will now complain if I have code such as this: ?

      var myJSON = ‘{“foo”:1,”foo”:2}’;

      /Jakob

      From: jslint_com@yahoogroups.com [mailto:jslint_com@yahoogroups.com] On Behalf Of Douglas Crockford
      Sent: 24. april 2009 23:32
      To: jslint_com@yahoogroups.com
      Subject: [jslint] JSON

      JSLint now checks that the keys in a JSON object are all unique.

      [Non-text portions of this message have been removed]
    • Douglas Crockford
      ... JSLint has looked at uniqueness in object literals for a long time. It now also looks for uniqueness in JSON objects.
      Message 2 of 4 , Apr 27 1:31 PM
      • 0 Attachment
        --- In jslint_com@yahoogroups.com, "Jakob Kruse" <kruse@...> wrote:
        >
        > Question: Did you really mean JSON object, or JavaScript object? JSLint will now complain if I have code such as this: ?
        >
        > var myJSON = '{"foo":1,"foo":2}';

        JSLint has looked at uniqueness in object literals for a long time.
        It now also looks for uniqueness in JSON objects.
      Your message has been successfully submitted and would be delivered to recipients shortly.