I'm converting the JSON file into Map Object, and below is the output
[
INV: [[
TestCaseID:MKP,
TestData: [
[
Controltype:text,
Label:Title,
Inputvalues:solid state device
],
[
Controltype:search,
Label:Creater,
Inputvalues:Sabra-Anne Truesdale
]
]
]]
]
code
Map jsonMap = new LinkedHashMap()
jsonMap = converJsonToMapObject(fileName)
println jsonMap
From this, how can I retrieve the inner map [TestData
]?
I'm searching the Test case id if that matches on the map then I need to retrieve the test data.