Lets say, I have a map created in aura component controller. I want to send map to apex controler but unfortunately map cannot be serialized by JSON.stringify. My code
JSON.stringify([...draftValues.entries()])
where draftValues is a map
server side
List obj= (List)JSON.deserializeUntyped('[["0017F00000gqDetQAE",{"ACCOUNTNUMBER":"CD451796 -- new","PHONE":"(512) 757-6000 --"}],["0017F00000gqDevQAE",{"NAME":"Pyramid Construction Inc. --"}]]');
how can I retrive Id (map key) and value (map.values) from this list of objects?