I have a big json (30mb) which contains "title" fields in different objects , structure of json is unknown.
Known only that json contains keys "title" and string value of this key must be translated into another.
{
"data1" : {
"title" : "alpha",
"color" : "green"
},
"data2" : {
"someInnerData1" : {
"title" : "beta"
"color" : "red"
},
"someInnerData2" : {
"someArray" : [
{
"title" : "gamme",
"color" : "orange"
},
{
"title" : "delta",
"color" : "purple"
}
],
"title" : "epsilon"
}
}
}
Replace example "alpha" -> "Α" "beta" -> "B" etc..
Which the best way achieve that in Golang , without decoding into struct ?
P.S. Json is received from network.