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

98
Vistas
How to parse JSON assigned to a variable in POST request?

I am trying to set a webhook for a payment system. Although, they keep sending invalid JSON data with content-type "application/json" headers.

Since I have set express with app.use(express.json()), whenever they make a POST request I'm unable to parse the data and the server errors.

This is what they're trying to send:

data={
  "return": {
    "orders": [
      {
        "order": {}
      }
    ]
  }
}

As you can see: it's JSON content assigned to a variable.

How do I deal with that, in order to have access to the actual JS object?

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