I'm asking myself if is possible to pass a classic Map structrure (javascript/typescript) via http post request.
When I try to do it, I see in browser console (network section) that the request payload present an empty json instead of my predefined map.
In other words, i pass as post payload/model an object like this:
{
"codiceAzienda": "TEST-CDP",
"username": "admin",
"datasource": null,
"selectionMap": {Map(1) {"home" => Array(7)}},
"profileList": {"2017" => Array(2), "2018" => Array(2)}
}
But when I see, in the browser, the request payload, it appears like this:
Is it strange? I'm asking it because is the first time that I try to pass a map in the payload.
Thanks in advance and have a great day.