I have the following JSON and I need to get the plain name value using JSONPath:
name
{ \"single\" : { \"id\" : 1, \"name\" : \"Item name\
I was using the Java implementation of JSONPath and got to the very same issue. What worked for me was to add '[0]' to the json path string. So in your case:
$.single.name[0]