Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

605
Vistas
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
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda