Is it possible to directly access a particular object somewhere deeply nested inside the JSON text with a JSONpath that doesn't require knowledge of the complete structure?
The structure can be altered outside the application, the field however are specified in official documents and should be used.
E.g. I want to get the Packet object that has NID_MESSAGE 0.
{
"ALE (TLE)": {
"length": 48,
"message_type": 3,
"FIE-PR": {
"type": 198,
"length": 37,
"TCEPID": 1987771643,
"UNISIG-037 SaPDU": {
"ETY": 0,
"type": 5,
"DF": 0,
"UNISIG-026 Message": {
"NID_MESSAGE": 136,
"L_MESSAGE": 24,
"T_TRAIN": 13969,
"NID_ENGINE": 103,
"Packets": [{
"NID_PACKET": 0,
"L_PACKET": 114,
"Q_SCALE": 0,
"NID_LRBG": 6980601,
"D_LRBG": 11133,
"Q_DIRLRBG": 0,
"Q_DLRBG": 0,
"L_DOUBTOVER": 0,
"L_DOUBTUNDER": 0,
"Q_LENGTH": 0,
"V_TRAIN": 0,
"Q_DIRTRAIN": 0,
"M_MODE": 0,
"M_LEVEL": 3
}]
},
"MAC": "368268A6E6112334"
}
}
}
}