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

Unable to retrieve nested child array

    XMLWordPrintableJSON

Details

    • Icon: Task Task
    • Resolution: Done
    • Icon: Major - P3 Major - P3
    • None
    • None
    • Serialization

    Description

      My json document contains nested array.

      {
          "_id" : ObjectId("5a26b43b38a9447d8032e8a2"),
          "personId" : UUID("50aa744d-95c3-4b77-9ffe-b2593c6d9732"),
          "address" : {
              "state" : "california"
          },
      	"contacts" : [
      		{ "name" : "John" },
      		{ "name" : "Bob" }
      	]
      }
      

      I get an this error.

       
      {"Value type of serializer is System.Collections.Generic.List`1[[Model.V1.Contacts, PlatformAPI.Monitoring.Core, Version=1.2.0.403, Culture=neutral, PublicKeyToken=null]] and does not match member type System.Collections.Generic.IEnumerable`1[[Model.V1.Contacts, PlatformAPI.Monitoring.Core, Version=1.2.0.403, Culture=neutral, PublicKeyToken=null]].\r\nParameter name: serializer"}
      

      Attachments

        Activity

          People

            wan.bachtiar@mongodb.com Wan Bachtiar
            justint justin teaw
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: