Our Community is getting an upgrade! To get everything ready for the relaunch, we’ll be placing the site in read-only mode starting September 21st.
We really appreciate your understanding while we get things set up behind the scenes. Catch up on all the exciting details about the move here.
Need help or have questions? Drop us a line at [email protected]
Created 01-23-2017 10:44 AM
I am trying to parse my json using Nifi Expression language - jsonpath
https://nifi.apache.org/docs/nifi-docs/html/expression-language-guide.html#jsonpath
Its uses '.' for node traversal. If json which has one node name with '.' in it.
Below is sample json
{"feedName":"trigger_category.childfeed123",
"feedId":"eff68e0b-a9e6-4c11-b74f-53f161a47faf",
"dependentFeedNames":["trigger_category.test_shashi"],
"feedJobExecutionContexts":{"trigger_category.test_shashi":[{"jobExecutionId":23946,
"startTime":1485145059971,
"endTime":1485145111733,
"executionContext":{"feedts":"1485145061170"}}]},
"latestFeedJobExecutionContext":{"**trigger_category.test_shashi**":{"jobExecutionId":23946,
"startTime":1485145059971,
"endTime":1485145111733,
"executionContext":{"**feedts**":"1485145061170"}}}}I am trying to read feedts but its parent node 'trigger_category.test_shashi' has dot ('.') in it. How do i escape "."character?
Created 01-23-2017 10:59 AM
Hi @Shashi Vish,
The following should be working :
$.feedJobExecutionContexts.['trigger_category.test_shashi']
Keep in mind to set 'return type' to 'json' in your EvaluateJson processor.
Hope this helps.
Created 01-23-2017 10:59 AM
Hi @Shashi Vish,
The following should be working :
$.feedJobExecutionContexts.['trigger_category.test_shashi']
Keep in mind to set 'return type' to 'json' in your EvaluateJson processor.
Hope this helps.
Created 01-24-2017 12:24 AM
Thanks... It worked...