Uploaded image for project: 'Groovy'
  1. Groovy
  2. GROOVY-7483

JSONSlurper returns wrong value for floating point in Groovy 2.4.3

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Duplicate
    • 2.4.3
    • None
    • None
    • None

    Description

      I'm upgrading groovy 2.4.3. But i see blocking issues causes test case failures.

      JSONSlurper returns wrong value.

      For example:
      When i pass the value 5.0, then it is returned as 5.
      new JsonSlurper.parseText(obj).

      I hope, this issue was reported by the earlier version of groovy.

      I need to know what is the workaround for this issue?

      Thanks,
      Vijay

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              Vijay26 Vijaykumar
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: