- Subscribe to RSS Feed
- Mark Question as New
- Mark Question as Read
- Float this Question for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page
how can i use Evaluate Json Path for nested json
- Labels:
-
Apache NiFi
Created on
11-03-2019
03:28 AM
- last edited on
11-04-2019
02:44 PM
by
ask_bill_brooks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi
i have below json file and i need to use Evaluate Json Path
{
"busId":1,
"speed":80,
location":{"lat":21.336742,"lon":39.6303}
}
is working fine but when i add location Evaluate Json Path return error transferring failure
Created 11-04-2019 09:52 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Here is working processor:
Your value would be $.busId, $.speed, $.location
Nested values are:
$.location.lat
$.location.long
Also make sure the sample json is "location" (" missing in your sample above).
Created 11-04-2019 09:52 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Here is working processor:
Your value would be $.busId, $.speed, $.location
Nested values are:
$.location.lat
$.location.long
Also make sure the sample json is "location" (" missing in your sample above).
