I have a JSON file with different and unique objects as Employee1, employee2 and so on. Now I want to read the JSON file using the unique objects and then map the object contents to a variable and use it in my project.
the JSON file is as follows:
[
{
"employee1": {
"firstName": "Lokesh",
"lastName": "Gupta",
"website": "howtodoinjava.com"
}
},
{
"employee2": {
"firstName": "Brian",
"lastName": "Schultz",
"website": "example.com"
}
}
]