Mapper Snap : Help with JsonPath
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-06-2017 07:51 AM
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

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-06-2017 09:56 AM
Another way
jsonPath($, "$person.jive.profile[?( @.jive_label=='Country' && @.value != '' )].value").toString()
