Need to iterate the json array object using java please some guid me on this
I have posed my JSON structure Below are the json given by developer i need to get the json array object as a input for my selenium script.
Can some one please help me on this?
[{
"Name": "Name1",
"Address": "Address",
"PhoneNo": 2142751,
"Courses": [{
"CourseName": "JAVA",
"Cost": 12000
},
{
"CourseName": "Testing",
"Cost": 12000
}
]
},
{
"Name": "Name2",
"Address": "Address2",
"PhoneNo": 214275143,
"Courses": [{
"CourseName": "JAVAV2",
"Cost": 12000
},
{
"CourseName": "Security",
"Cost": 12000
}
]
}
]
Expected String name = value of Name String courseName = value of CourseName