JSON parsing using Groovy
问题 I am trying to parse JSON records using Groovy script which is called through NiFi. Based on the input I got from Nested JSON with duplicate keys, it was working fine. But my groovy script got failed for few records if the value column has double quotes (") in it. E.g., "CT":"text/javascript; charset="UTF-8"" To fix the above issue, I replaced all the double quotes (") from the record and made the record look like, CT:text/javascript; charset=UTF-8 and used JsonParserType.LAX while parsing