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:

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)