I have the following JSON and I need to get the plain name
value using JSONPath:
{
"single" : {
"id" : 1,
"name" : "Item name"
}
}
Expression that I used is $.single.name
but I always get an array:
[ "Item name" ]
instead of a string value ("Item name"
).