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

256
Views
¿Cómo leer el objeto json enviado a través de una solicitud posterior y guardar/agregar en el objeto json de la memoria - Nodo js?

Quiero leer la solicitud enviada y guardar en el siguiente objeto JSON. console.log ni siquiera registra los datos en la consola. JSON.Parse() , no funcionó.

 var express = require('express'); bodyParser = require('body-parser'); pp.use(bodyParser.json()); app.use( bodyParser.urlencoded({extended:true})); app.post('/addteacher', function(request,response){ console.log(request.body); }); //var inMemory = { teacher: { 1: { id: 1, name: 'name example 1', age: 23, job: 'example job'`, co-workers: [] }, } };
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!