Hello all,
I have a list of single objects with this structure:
{
"kpi1":{
"formula1":"value1",
"formula2":"value2",
"formula3":"value3"
}
}
I would like to put these together into a single column in a database as a JSON string with that form:
{
"kpi1":{
"formula1":"value1",
"formula2":"value2",
"formula3":"value3"
},
"kpi2":{
"formula1":"value4",
"formula2":"value5",
"formula3":"value6"
},
"kpi3":{
"formula1":"value7",
"formula2":"value8",
"formula3":"value9"
}
}
I am struggling in doing this. My best result was a list of all JSON objects in the follwing form:
[
{
"kpi1":{
"formula1":"value1",
"formula2":"value2",
"formula3":"value3"
}
},
{
"kpi2":{
"formula1":"value4",
"formula2":"value5",
"formula3":"value6"
}
},
{
"kpi3":{
"formula1":"value7",
"formula2":"value8",
"formula3":"value9"
}
}
]
Any idea how I can achieve this is highly appreciated. Thank you in advance for your support.
Regards, Joerg