MySQL JSON_OBJECTAGG

You must execute the code again to save those values in the database.
PostIdPostTitlePostSummaryTagsObject
3Title 3Summary 3NULL
2Title 2Summary 2{"tag-name-2": "tag name 2"}
1Title 1Summary 1{"tag-name-1": "tag name 1", "tag-name-2": "tag name 2"}