What is the easy way to get all paths in the Given Json Object; For Example:
{
app:{
profiles:'default'
},
application:{
name:'Master Service',
id:'server-master'
},
server:{
protocol:'http',
host:'localhost',
port:8098,
context:null
}
}
I should able to produce the following object
app.profiles=default
application.name=Master Service
application.id=server-master
I was able to achieve the same using a recursive function. I want to know is there any built in function from json which does this.