Hi all,
I have a string array like below
["ft", "sample", "data", "qwerty", "asdf", "test", "test1", "ewewe", "euro", "euro1", "euro2", "euro3", "euro4", "euro5"]
need convert dynamically into json like below if columns added json format also change
"ft": {
title: 'FT'
},
"sample": {
title: 'Sample'
},
"data": {
title: 'Data'
},
"qwerty": {
title: 'QWERTY'
}
how can i achieve this dynamically


Amit GuptaRank #190 · 12.8K reputationPosted Jan 13, 2021, 7:42 AM EST
Siddharth GajbhiyeRank #376 · 6.7K reputationPosted Jan 14, 2021, 12:07 AM EST
Harshal LimayeRank #485 · 5.1K reputationPosted Jan 15, 2021, 5:51 AM EST