Trying to read Json Message like below
{
"employees": [
{
"firstName": "John",
"lastName": "Doe"
},
{
"firstName": "Anna",
"lastName": "Smith"
},
{
"firstName": "Peter",
"lastName": "Jones"
}
]
}
I want to read all keynames like employees,firstName,lastName etc.. in java. in XML we do this while parsing we specify * in dom object and get all node names, how to do this in java?