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

602
Views
Problemas de MongoDB al deserializar JArray

Recibo las siguientes excepciones:

  • 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.

Y parece que el problema ocurre cuando intenta leer una entrada de MongoDB, que tiene esta clave de "Valor":

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

"Valor" es un objeto: public object Value { get; set; } .

Estoy un poco atascado aquí desde que estuve investigando este problema durante 1,5 días, ¡así que agradezco cualquier información!

PD.: Parece que "_v": [] están vacíos, pero no debería estarlo, lo que probablemente signifique que no se puede insertar la entrada correctamente debido a la misma excepción.

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!