I tried this code in node js:
const express = require('express');
const bodyParser = require('body-parser');
const app = express();
app.use(express.urlencoded({extended: false}))
app.use(express.json())
 app.post("/Picture", (req, res, next) => {
        if(req.body == { aaa: 'aaa'}){
            res.send(body)
            console.log("well done!!!!")
           
        }
      
    })
I want when user enter in body this json object { aaa: 'aaa'} then get response but this code not work I dont know how i can make user can only send specific json objects
 
     
    