I know this question has been asked before but this is a bit different, my map looks like this:
key value
a.b.c 1
a.b.d 2
e.f 3
The resulting JSON would look like this:
{
"a": {
"b": {
"c": 1,
"d": 2
}
},
"e": {
"f": 3}
}
it would be perfect if there is some library that takes care of this.
EDIT : fixed errors in the resulting JSON