siva nathan

siva nathan

  • 1.3k
  • 747
  • 117.9k

Convert string of array to separate column json format

Jan 13 2021 12:11 PM
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 

Answers (3)