How does nodejs parse the json data coming in from post?

problem description

the data is submitted through post, then parsed by node, and inserted into the collection using MongoDB.
how does the front end encode the data and then parse it correctly through nodejs?

the environmental background of the problems and what methods you have tried

uses axios to make post requests. At first, it uses JSON.stringify () in the front end, but it doesn"t work. Nodejs parses it like this:

            let data = [];
            //this.tableData ==>
            this.tableData.forEach((item,i) => {
                data[i] =  Qs.stringify(item);
            });

            // let data = Qs.stringify(this.tableData[0]);
            console.log(data);
            axios({
                url:"http://localhost:3000/settle_post",
                method:"post",
                data:data,
                transformRequest: [function(data){
                    return data;
                }],
                headers: {
                    "Content-Type": "application/x-www-form-urlencoded"
                }
            })

because I just learned node for not two days, some things are not clear, Baidu still has no results after all kinds of methods, so I can only ask for help from all the bigwigs! Because the younger brother"s knowledge is relatively weak, if you need to provide anything else, please remind me in the comments. Thank you
ps: (currently I"ve come up with a wasteful way to loop the data, and then make an post request for each piece of data--)

Mar.30,2021

application/x-www-form-urlencoded change to application/json , you have to tell the server that the data is in json format


submit json should use application/json instead of application/x-www-form-urlencoded . application/x-www-form-urlencoded will convert json data into goodsId='1'&goodsName=' spicy chicken leg burger and pastoral chicken leg burger in body .


change the front-end code to:


            axios({
                url:'http://localhost:3000/settle_post',
                method:'post',
                data:JSON.stringify(tableData),
                headers: {
                    'Content-Type': 'application/json'
                }
            })

backend JSON.stringify (your json) view the data. The
backend for loops through your JSON object properties to read the data, or use the body-parse module to process the received data directly through obj [name] read object data


nodejs.

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1e9b7a6-465a1.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1e9b7a6-465a1.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?