title: How to use jsonPath inside array in AWS Step Functions
body: <p>I am writing an AWS step function, and for one of the steps, I wish to call a lambda that accepts an array as one of the inputs. However, if I try to pass in a JsonPath into the array, I get</p>
  
  <pre><code>The value for the field 'arrayField.$' must be a STRING that contains a JSONPath but was an ARRAY
  </code></pre>
  
  <p>My step function definition:</p>
  
  <pre><code>{
    "StartAt": "First",
    "States": {
    "First": {
      "Type": "Pass",
      "Parameters": {
        "type": "person"
      },
      "ResultPath": "$.output",
      "Next": "Second"
    },
      "Second": {
        "Type": "Task",
        "Resource": "arn:aws:lambda:us-east-1:&lt;aws_id&gt;:function:MyFunction",
        "Parameters": {
          "regularParameter": "some string",
          "arrayParameter.$": ["$.output.type"]
        },
        "Next": "Succeed"
      },
      "Succeed": {
        "Type": "Succeed"
      }
    }
  }
  </code></pre>
  
  <p>How can I use jsonPath inside the array?</p>