[英]Extracting json data in Clover ETL
How do I extract JSON values along with keys using Xpath in Clover ETL {"code": "in","percent": 83}
? 如何在Clover ETL
{"code": "in","percent": 83}
使用Xpath提取JSON值和键? Eg :-. 例如:-。 For the JSON object in the example I don't want just values ie [in,83] I also want keys with them ie
["code": in,"percent": 83]
对于示例中的JSON对象,我不只是想要值,例如[in,83],我还想要带有它们的键,例如
["code": in,"percent": 83]
You are looking for "decode(name())" function of XPath. 您正在寻找XPath的“ decode(name())”函数。
There is an example in the documentation https://doc.cloverdx.com/documentation/UserGuide/topic/com.cloveretl.gui.docs/docs/jsonreader.html (search "name()") which is doing what you need. 文档https://doc.cloverdx.com/documentation/UserGuide/topic/com.cloveretl.gui.docs/docs/jsonreader.html (搜索“ name()”)中有一个示例可以满足您的需求。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.