JSON:
"mainArray":
[
{"name":"MS","value":20},
{"name":"MC","value":20},
{"name":"CF","value":20},
{"name":"ST"},
{"name":"CMR","value":20}
]
-- i am currently using the search as " | spath output=code path=mainArray{}.name | spath output=cnt path=mainArray{}.value | table code,cnt"
and the output i see is as :
code cnt
MS 20
MC 20
CF 20
ST 20
CMR
The Expected Output is:
code cnt
MS 20
MC 20
CF 20
ST
CMR 20
↧