JSON parsing doesn't handle exponents

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Done
    • Priority: Major - P3
    • 2.2
    • Affects Version/s: 2.1
    • Component/s: None
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      The following code, which tries to parse valid JSON, throws an exception:

      com.mongodb.util.JSON.parse("

      {\"number\" : 3.14e6}

      ")
      com.mongodb.util.JSON.parse("

      {\"number\" : 3.14E6}

      ")

        1. JAVA-177.patch
          3 kB
          Jorge Ortiz

              Assignee:
              Eliot Horowitz (Inactive)
              Reporter:
              Jorge Ortiz
              None
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: