$db=new mysqli('localhost','test','test','test');
$x = '{"test":"test","asdad":"asdad","sdfsd":"ไม้เท้า"}';
$y=$db->real_escape_string(html_entity_decode($x, ENT_QUOTES, "utf-8") );
$db->query("update test set json_text='$y' where id=1");