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

433
Views
No se puede deserializar el objeto JSON actual (por ejemplo, {\"nombre\":\"valor\"})

Recibo un error en cartero como el siguiente

 Cannot deserialize the current JSON object (eg {\"name\":\"value\"}) into type 'System.Char' because the type requires a JSON primitive value (eg string, number, boolean, null) to deserialize correctly. To fix this error either change the JSON to a JSON primitive value (eg string, number, boolean, null) or change the deserialized type so that it is a normal .NET type (eg not a primitive type like integer, not a collection type like an array or List<T>) that can be deserialized from a JSON object. JsonObjectAttribute can also be added to the type to force it to deserialize from a JSON object. Path 'cardNumber', line 2, position 15."

Estoy pasando un valor de cadena:

 { "cardNumber": "{{strCardNumber}}" }

El número de tarjeta es una variable de colección que se establece en solicitud anterior en la misma colección. También verifiqué si el número de tarjeta es una cadena en una solicitud anterior con una prueba.

 pm.expect(pm.collectionVariables.get("strCardNumber")).to.be.a('string');

Esta prueba pasó, por lo que el número de tarjeta es una cadena, pero no estoy seguro de por qué recibo este error. ¿Puede alguien por favor ayudarme en esto?

about 4 years ago · Juan Pablo Isaza
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!