Create Update Json with CI

I want to create/update JSON files via CI.My file looks like this:
[
{
“release”: “3.0”,
“notes”: [
“.”
“Project structure improved.”
“net5 migration.”
“More tests added.”
]
},
{
“release”: “1.1”,
“notes”: [
“multi language strings added”
]
}
]
The idea is when I make merge requests from development to master to be done automatically release and this JSON depended on release ( e.g notes).I am still new in CI and don’t have the template for this to show.