I have an EvaluateJsonPath processor which adds the client id as an attribute to a flow file, client id is an integer without any double quotes, but when I later retrieve this and few other attributes using a AttributeToJson processor and get the results as a JSON output I get the client ID with double quotes in the following format:
clientid : "2"
I tried with JOLTTransformJSON processor too with following configuration:
[
{
"operation": "default",
"spec": {
"clientid":"${clientid}"
}
}
]
and also with the replace function in an updateAttribute processor to replace double quotes but still I get it with double quotes, how can I get rid of the double quotes in resultant JSON.