Hello everyone,
I am facing an issue with phasing data. My expression looks like $..[?(@.name=='is_literate')] it throws error. Also, I tried $[?(@.name=='is_literate')] this time, this does not throw any error, but I did not get the expected value. Which is given as follows. I tried it at https://jsonpath.com/, it works fine with $..[?(@.name=='is_literate')] expression.
Note: I have the name of the label, but I don't have label. I need a label based on the name value.
[
{
"control": {
"appearance": "quick"
},
"children": [
{
"name": "is_literate_1",
"label": "साक्षर"
},
{
"name": "is_literate_0",
"label": "निरक्षर"
}
],
"name": "is_literate",
"label": "${full_name}: साक्षर कि निरक्षर ?",
"bind": {
"required": "true"
},
"type": "select one"
}
]
I am attaching the JSON file for reference. I would appreciate it if someone could resolve this issue. Thank You.
Json File