anyone can help please with this puzzle?
This is my json snippet:
{
"Meas": [
{
"@TyCd": "ACT",
"H": {
"$": 69.0,
"@Uom": "CM"
},
"L": {
"$": 116.0,
"@Uom": "CM"
},
"VolWgt": {
"$": 131.266,
"@Uom": "KG"
},
"W": {
"$": 82.0,
"@Uom": "CM"
},
"Wgt": {
"$": 156.5,
"@Uom": "KG"
}
},
{
"@TyCd": "DEC",
"H": {
"$": 66.0,
"@Uom": "CM"
},
"L": {
"$": 120.0,
"@Uom": "CM"
},
"W": {
"$": 80.0,
"@Uom": "CM"
},
"Wgt": {
"$": 155.8,
"@Uom": "KG"
}
}
]
}
And in my my case I need to filter values for @TyCd='ACT', Im trying something like this: Meas[?(@.@TyCd=="ACT")]=='ACT' but it is not working obviously...
So any JSON Guru who can help to access json element with '@'?
THANKS!