title: How to specify nested json body in POST request
body: <p>I'm trying to set Artillery config to be able to send nested JSON body. This is how my configuration looks like:</p>
  
  <pre><code>config:
    target: &lt;URL&gt;
    phases:
      - duration: 10
        arrivalRate: 20
    processor: "./input-parser.js"
  scenarios:
    - flow:
      - function: "parseJsonFile"
      - post:
          url: /workflow-instance
          headers:
             Content-Type: "application/json"
          json:
            name: "{{ name }}"
            namespace: "{{ namespace }}"
            template_name: "{{ template_name }}"
            attributes: "{{ attributes }}"
      - get:
          url: "/workflow-instance/status?name={{ template_name }}&amp;namespace={{ namespace }}"
  </code></pre>
  
  <p>I have a problem with "attributes" because the content of attributes is:</p>
  
  <pre><code>{ pod_name: 'POD_NAME', port: 'PORT_NUMBER' }
  </code></pre>
  
  <p>So basically, this will not work:</p>
  
  <pre><code>attributes: "{ pod_name: 'POD_NAME', port: 'PORT_NUMBER' }"
  </code></pre>
  
  <p>as well as this:</p>
  
  <pre><code>attributes:
    pod_name: 'POD_NAME'
    port: 'PORT_NUMBER'
  </code></pre>
  
  <p>I didn't found good examples for this particular case in Artillery docs.</p>