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

244
Views
How to read json object sent over post request and save/append to in memory json object- Node js?

I want to read the sent request and save in the following JSON object. console.log does not even log the data to console. I tried JSON.Parse(), didn't work.

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!