Используйте concat в Group_Concat
SELECT GROUP_CONCAT(
CONCAT(
'{ID:', ID,
',ParentID:', ParentID,
'}'
) SEPARATOR ","
) FROM table
Cute Caterpillar