title: Nifi - atttributes to json - not able to generate the required json from an attribute
body: <p>The flowfile content is </p>
  
  <blockquote>
    <p>{
        "resourceType": "Patient",
        "myArray": [1, 2, 3, 4]
    }</p>
  </blockquote>
  
  <p>I use EvaluateJsonPath processor to load the "myArray" to an attrribute myArray.</p>
  
  <p><a href="https://i.stack.imgur.com/gM6Ib.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/gM6Ib.png" alt="enter image description here"></a>
  Then I use the processor AttributesToJSON to create a json from myArray.
  <a href="https://i.stack.imgur.com/vsXmH.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/vsXmH.png" alt="enter image description here"></a></p>
  
  <p>But in the flowfile content, what I get is </p>
  
  <blockquote>
    <p>{"myArray":"[1,2,3,4]"}</p>
  </blockquote>
  
  <p>I expected the flowfile to have the following content.</p>
  
  <blockquote>
    <p>{"myArray":[1,2,3,4]}</p>
  </blockquote>
  
  <p>Here are the flowfile attributes
  <a href="https://i.stack.imgur.com/j1RAs.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/j1RAs.png" alt="enter image description here"></a>
  How can I get  "myArray" as an array again in the content?</p>