Im trying to append new object into json array field
UPDATE phone_messages SET messages = JSON_ARRAY_APPEND(messages, '$', CAST('?' AS JSON)) WHERE charId = ? AND number = ?
this is SQL I'm using but its giving me error (You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'JSON)).