Is it possible to build a JSON from an array of strings. such that the input is of the format
str = ["a.b.c" , "a" , "a.b.d" , "t" ]
and the corresponding
output as JSON eg
data = {a :
{b :
{c : '',
d : ''
}
}
t : ''
}