jsonpath icon indicating copy to clipboard operation
jsonpath copied to clipboard

jsonpath always return false or array?

Open SimonCheung1989 opened this issue 7 years ago • 1 comments

when i have a data structure like { city1: ['BJ'], city2: 'BJ' }

when i use jsonpath to get the json value, $.city1 it will return ['BJ'] $.city2 it will return ['BJ'] as well, then the question come out, how could i juddge the element type is a String or is an Array?

SimonCheung1989 avatar Aug 25 '17 08:08 SimonCheung1989

use jp.value instead of jp.query

timo-klarshift avatar Mar 07 '18 18:03 timo-klarshift