There is an JSON object I have:
{
"inputs": {
"country": "TR",
"isActive": true,
"person": {
"fullName": "Şeref Can Muştu"
}
}
}
I want this JSON object like this:
{
"inputs.country": "TR",
"inputs.isActive": true,
"inputs.person.fullName": "Şeref Can Muştu"
}
Is there an easiest way to make it with lodash
or any most common library or just an easy method which is usable ?