I'm getting values in the below format
/a/b/c/d="value1"
/a/b/e/f="value2"
I want these values in the below format.
{
"a": {
"b": {
{
"c": {
"d": "value1"
}
},
{
"e" {
"f": "value2"
}
}
}
}
}
Are there any built-in functions in python that can do this job as I could a["b"]["c"]["d"] kind of structure is not possible in the python dictionary?