How to send a Map in JSON

Key always should be string. Why it still doesn’t work? Because the error is caused by the redundant brace inside of “elementsToUpdate”. Below is an example: