ご希望の書式と完全に一致しないかもしれませんが、JSON_OBJECTAGGがヒントになるかもしれません。
select
product_id,
JSON_OBJECTAGG(tag_id, tag_name) as tags
from
(
select
product.id as product_id,
product.name as product_name,
tag.id as tag_id,
tag.name as tag_name
from
product
left join
map_product_tag
on product.id = map_product_tag.product_id
left join
tag
on map_product_tag.tag_id = tag.id
)
as x
group by
product_id
実行結果
product_id tags
1 {"11": "tag1", "22": "tag2"}
2 {"22": "tag2"}
次のようにJSON_ARRAYAGGを使う方が希望の書式に近いかもしれません。
JSON_ARRAYAGG(JSON_ARRAY(tag_id, tag_name) ) as tags
実行結果
product_id tags
1 [[11, "tag1"], [22, "tag2"]]
2 [[22, "tag2"]]