-
Dear All,
}] For accessing the Status1 i have used the below command: But it is throwing the below error: Any kind of help to solve this issue will be highly appreciated. Best Regards |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
You are not doing any array indexing here. That results in you trying to access the first element of an array using the index You would then be trying to access another array using the index Then again an array using the index I'm not sure what information exactly you are trying to get out of this, and if the JSON contents are fixed, or if you can remove some of those arrays. Hope this helps you figure out what you need to do. |
Beta Was this translation helpful? Give feedback.
You are not doing any array indexing here. That results in you trying to access the first element of an array using the index
"Sign"
. You wantj[0]["Sign"]
.You would then be trying to access another array using the index
"Status_all"
. You thus wantj[0]["Sign"][0]["Status_all"]
.Then again an array using the index
"Status1"
. If you add a[0]
before that to givej[0]["Sign"][0]["Status_all"][0]["Status1"]
, then you are going to iterate over the string"enable"
, and assigning the characters in that string tox
.I'm not sure what information exactly you are trying to get out of this, and if the JSON contents are fixed, or if you can remove some of those arrays. Hope this helps you figure ou…