Extended JSON parsing mishandles invalid $code

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Fixed
    • Priority: Major - P3
    • 1.3.2
    • Affects Version/s: 1.3.0
    • Component/s: JSON & ExtJSON
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      When parsing this document:

      {"":{"$code":"", "0":{}}}
      

      The follow error is received: "invalid JSON input; expected value for javascript". This should error due to an erroneous key next to $code.

      This document fails to error and produces an incorrect document:

      {"":{"$code":"abc", "0":""}}
      0c0000000d00010000000000
      

      Note that "abc" does not appear in the output.
       

            Assignee:
            Divjot Arora (Inactive)
            Reporter:
            David Golden
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: