cancel
Showing results forย 
Search instead forย 
Did you mean:ย 

Mapper Snap : Help with JsonPath

DaisyTam
New Contributor

Hi

I appreciate some help in transform the attached input to the attached output.

I have tried using the mapper snap with the following expression
$person.jive.profile[?(value.jive_label == โ€˜Countryโ€™)].value
$person.jive.profile[?(jive_label == โ€˜Countryโ€™)].value

And is getting syntax error.

input.txt (636 Bytes)
output.txt (191 Bytes)

5 REPLIES 5

Another way

jsonPath($, "$person.jive.profile[?( @.jive_label=='Country' && @.value != '' )].value").toString()