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

incorrect json generation on ToJson

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Minor - P4 Minor - P4
    • None
    • Affects Version/s: 2.2.3
    • Component/s: BSON
    • None
    • Environment:
      .net 4.5.1
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      Builders<BsonDocument>.Filter.In("Folders", new string[]

      { "URN:IVIS:100266:FLD-0000220" }

      ).ToJson()

      Returns

      "

      { \"_t\" : \"SingleItemAsArrayOperatorFilterDefinition`2\" }

      "

      But should be like this

      "{Folders : { \"$in\" : ['URN:IVIS:100266:FLD-0000220']}}"

            Assignee:
            Unassigned Unassigned
            Reporter:
            AlexZ Alexander Zel
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: