Uploaded image for project: 'C# Driver'
  1. C# Driver
  2. CSHARP-354

JsonReader: No valid JSON format for reading Int64

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Minor - P4 Minor - P4
    • None
    • None
    • None
    • Fully Compatible

    Description

      There is no way for JsonReader to read a strict JSON-conforming Int64 in the range int.MinValue to int.MaxValue. This is an issue if reading documents generated by a strict JSON implementation.

      Possible solutions:

      • permitting CurrentBsonType to be Int32 or Int64 in ReadInt64
      • an additional extended format, i.e. "
        Unknown macro: { "bigValue"}

        "; forces bigValue to be an Int64 regardless of the actual value.

      Attachments

        Activity

          People

            robert@mongodb.com Robert Stam
            qdervish Derek Ludwig
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: