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

96
Views
Necesita JavaScript para convertir la solicitud JSON en otra respuesta de matriz JSON

Obtengo la solicitud de entrada JSON exactamente como se muestra a continuación y almaceno la solicitud en una variable.

Ejemplo: var input_json = context.getVarible ("JSONInput")

los datos dentro de JSONInput son los siguientes

 { "line": 1, "identifier": "12345", "status_code": 422, "message": "The Product Hierarchy attribute does not exist in your." } { "line": 2, "identifier": "121515", "status_code": 201 }

Necesita convertir la solicitud anterior a la siguiente y debe pasarla

 { "messages": [ { "status": "failure", "code": "422", "message": "The Product Hierarchy attribute does not exist in your.", }, { "status": "success", "code": "201", "message": "JSON message received" } ] }

Necesito un javascript para 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!