I want to change the structure of an object javascript, for example:
I have this structure :
obj = {
"email": "abc@site.com",
"societe.name": "xyz"
}
and I want to change it to :
obj = {
"email": "abc@site.com",
"societe": {
"name": "xyz"
}
}
thank's for help.