我有以下格式的nifi输出:
{"情绪" :" NEUTRAL"," clientid" :" 1","分类法" :" [51,41]"," type" :" twitter"," socialtags" :" [\"研究\",\" Pembrolizumab \","免疫疗法\"," lungcancer \& #34;,\" clinicaltrial \"]"," url" :" https://twitter.com/ValleyHospital/status/905770926368804866"," timestamp" :" 1504787591913" }
我需要删除围绕socialtags&的值的双引号。分类法,最终产出预计如下:
{"情绪":"中性"," clientid":1,"分类法":[51,41],&# 34;键入":" twitter"," socialtags":["研究"," Pembrolizumab","免疫疗法&# 34;," lungcancer"," clinicaltrial"]," url":" https://twitter.com/ValleyHospital/status/905770926368804866" ;," timestamp":1504787591913}
社会标签和分类法的值是整数和字符串数组,因此可以包含任意数量的值,包括没有值,如果没有值,它将只返回[]作为值,如何删除这些双引号。< / p>
答案 0 :(得分:2)
您可以将ReplaceText与搜索值&#34; [和[
的替换值]一起使用然后另一个具有SearchValue的ReplaceText]&#34;和替代价值]