Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

607
Views
MongoDB Issues Deserializing JArray

I'm getting following exceptions:

  • An error occurred while deserializing the Value property of class ExampleClass: Type 'Newtonsoft.Json.Linq.JToken' does not have a suitable constructor or Add method.

  • MongoDB.Bson.BsonSerializationException: Type 'Newtonsoft.Json.Linq.JToken' does not have a suitable constructor or Add method.

And it looks like the issue happens when it tries to read an entry from MongoDB, which has this "Value" key:

"Value": {
    "_t": "Newtonsoft.Json.Linq.JArray, Newtonsoft.Json, Version=12.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed",
    "_v": [{
            "_t": "JValue",
            "_v": []
    }, {
            "_t": "JValue",
            "_v": []
    }]
}

"Value" is an object: public object Value { get; set; }.

I'm a bit stuck here since was researching this issue for 1.5 days now, so any insights appreciated!

PS.: It looks like "_v": [] are empty, but it shouldn't be, probably meaning that it fails to insert entry properly due to same exception?..

over 4 years ago · Santiago Trujillo
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!