I am having the below Json content.
{
"aaaaaa":
{
"id": 20956,
"bbbbbb": [
{"xxxxxxxx": []
},
{"xxxxxxxx": [1,2]
}
]
}
}
And the Json path is as below
$.aaaaaa.bbbbbb[*].xxxxxxxx[*]
instead of getting the result as [null,1,2] I am getting the result as [1,2]. How can I get the expecting result if there is null arrays?
I am obtaining the output as below.
output = JsonPath.read(jsonContent, jsonpath);