mysqli
SELECT ... ,concat('[[', GROUP_CONCAT(`id`, ',', '\"',`name`, '\"' SEPARATOR '],['),']]') as npc A string of the following type arrives from the base (json):
var_dump($row['npc']);//→ string(62) "[[679,"<Привратник> Хранитель Храма"]]" I want to convert this string to an array, but I can't
$row['npc'] = json_decode($row['npc']);// пусто If to copy a line from the browser and to substitute in json_decode
$row['npc'] = json_decode('[[679,"<Привратник> Хранитель Храма"]]'); then convert it turns out. What kind of nonsense I do not understand: (