javascript - how do I read data(object) from params in express? -


i trying read object being sent parameter in delete request.

router.delete('/deletebranch/:id',(req,res)=>{         console.log(req.params.id);  }); //what [object object] //what need {      schoolid:03746,      branchid:23231 } 

i getting [object object] in console. instead of , want print key-values in console . can me? in advance!


Comments

Popular posts from this blog

android - InAppBilling registering BroadcastReceiver in AndroidManifest -

python Tkinter Capturing keyboard events save as one single string -

sql server - Why does Linq-to-SQL add unnecessary COUNT()? -