My JSON ResponseData example for form0 is provided below:
{
"MaterialType": "camera",
"AssetID": 202773,
"forms": [
{
"release": "asyncCmd/accessCameraMulti",
"action": "rest/Asset/202773/cameraAccessMultiple",
"fields": [
{
"fieldName": "cameras",
"fieldType": "json",
"jsonSchema": "rest/schemas/camera",
"instanceIds": {
"12202773.2.0": [
"MJPEG:MPEG4",
"FLV:H264",
"RTSP:H264"
]
}
}
],
I am looking to extract the key name "12202773.2.0"
from instanceIds
and assign it to a variable.
Currently,
jsonData.forms[0].fields[0].instanceIds
is returning the values instead of the key name.