【发布时间】:2017-06-16 09:35:24
【问题描述】:
我正在尝试使用 NiFi 中的 EvaluvateJsonPath 处理器从 JSON 文件中获取属性值。
以下是示例 JSON 文件
{"widget": {
"debug": "on",
"window": {
"title": "Sample Konfabulator Widget",
"name": "main_window",
"width": 500,
"height": 500
},
"image": {
"src": "Images/Sun.png",
"name": "sun1",
"hOffset": 250,
"vOffset": 250,
"alignment": "center"
},
"text": {
"data": "Click Here",
"size": 36,
"style": "bold",
"name": "text1",
"hOffset": 250,
"vOffset": 100,
"alignment": "center",
"onMouseUp": "sun1.opacity = (sun1.opacity / 100) * 90;"
}
}}
下面是我的配置。
预期的输出应该是“main_window”。但我将整个 JSON 字符串作为输出。有人可以指出我正确的方向吗,这里出了什么问题?
更新:
这是流文件内容,我在队列中看到是 EvaluvateJsonPath 处理器的结果。
【问题讨论】:
标签: json apache-nifi