I have a JSON like below, and have JSONPath like for example,
"$[0].child_members[7].diamond.diamond_id" => Line number 55
"$[1].match_departments[0]" => Line number 83
I want to find the line number for JSONPath in corresponding JSON. I am using Jackson and JayWayPath Libraries, but not able to figure out, is there a way possible to find line number based on JSONPath. If any one can suggest some idea, help is appreciated. Thanks.
[
{
"facility": "Global",
"group_names": [
"H R"
],
"group_type": "department",
"remove_users_on_logout": false,
"shift_membership": {
"min": 50,
"max": 50,
"source": "any_shift",
"type": [
"auxiliary"
]
},
"child_members": [
{
"diamond": {
"diamond_id": "akron_hr"
}
},
{
"diamond": {
"diamond_id": "baltimore_hr"
}
},
{
"diamond": {
"diamond_id": "charlotte_hr"
}
},
{
"diamond": {
"diamond_id": "dallas_hr"
}
},
{
"diamond": {
"diamond_id": "elpaso_hr"
}
},
{
"diamond": {
"diamond_id": "houston_hr"
}
},
{
"diamond": {
"diamond_id": "greensboro_hr"
}
},
{
"diamond": {
"diamond_id": "houston_hr"
}
},
{
"diamond": {
"diamond_id": "knoxville_hr"
}
},
{
"diamond": {
"diamond_id": "lakewood_hr"
}
},
{
"diamond": {
"diamond_id": "madison_hr"
}
},
{
"diamond": {
"diamond_id": "nashville_hr"
}
}
]
},
{
"facility": "Akron",
"match_departments": [
"L T C",
"M I C U"
],
"child_members": [
{
"group_names": [
"Unit Alert"
],
"group_type": "ordinary",
"group_use": [
"unit_alert"
],
"remove_users_on_logout": false,
"name_format": "$department $name",
"shift_membership": {
"min": 12,
"max": 12,
"source": "per_shift",
"type": [
"clinician"
]
}
}
]
}
]