I'm trying to use Axios in JS to send a post request with a Map object as data, but the receiving endpoint is getting an empty map. See code below:
let dataMap = new Map();
dataMap.set('testKey', 'testValue')
const article = { map: dataMap }
axios.post('http://localhost:3001/testEndpoint', article).then(data => {
console.log(data['data']);
})