bson_as_json converts int64 to scientific notation

XMLWordPrintableJSON

    • Type: Task
    • Resolution: Done
    • Priority: Major - P3
    • 1.7.0
    • Affects Version/s: 1.3.5
    • Component/s: json, libbson
    • None
    • Environment:
      Linux
    • None
    • None
    • None
    • None
    • None
    • None

      When trying to retrieve an int64 value using mongoc_collection_find, mongoc_cursor_next, and bson_as_json, I need to see the full value. When I run the code now, it translates my value into scientific notation, which loses precision (e.g., 1479421652125003000 becomes 1.479421652125e+18).

      Is there any way to get the actual value instead of the scientific notation value?

              Assignee:
              Unassigned
              Reporter:
              Darin Christenson
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: