couchdb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Adam Lofts (Created) (JIRA)" <>
Subject [jira] [Created] (COUCHDB-1407) JSON encoding of number changes
Date Fri, 10 Feb 2012 12:21:59 GMT
JSON encoding of number changes

                 Key: COUCHDB-1407
             Project: CouchDB
          Issue Type: Bug
          Components: HTTP Interface
    Affects Versions: 1.2
         Environment: Ubuntu 12.04 (alpha)
            Reporter: Adam Lofts

JSON encoding of Number has changed from 1.0.2 to 1.2. JSON only defines Number but this change
causes issues in my app because python decodes the number as an int in 1.2.

Test case:


curl -X DELETE http://localhost:$PORT/test-floats/
curl -X PUT http://localhost:$PORT/test-floats/

curl -X PUT http://localhost:$PORT/test-floats/doc1 -H "Content-Type: application/json" -d
"{ \"a\": 1.0 }"
curl http://localhost:$PORT/test-floats/doc1

Run against 1.0.2:


Run against 1.2:


This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:!default.jspa
For more information on JIRA, see:


View raw message