title: Jmeter Dynamic Json Array Generation from CSV file
body: <p>I have a following Json data to post.</p>
  
  <pre><code>{
      "id": 1,
      "name": "Zypher",
      "price": 12.50,
      "tags": [{
          "tag": 1,
          "tagName": "X"
      },
      {
          "tag": 2,
          "tagName": "Y"
      },
      {
          "tag": 2,
          "tagName": "Z"
      }]
  }
  </code></pre>
  
  <p>My Jmeter Test Plan is as following,</p>
  
  <pre><code>- Test Plan
      - Thread Group
          - Http Request Defaults
          - Http Cookie Manager
          - Simple Controller
              - CSV Data Set Config (Sheet_1)
              - Http Header Manager
              - Http Request (The hard coded json was provided here as body data)
  </code></pre>
  
  <p>Every thing works fine. Now I want to use csv to parametrised my Json. </p>
  
  <pre><code>Sheet_1:
  id,name,price
  1,Zypher,12.50 
  </code></pre>
  
  <p>I modified json with these 3 parameters and its works for me. Now I want to parametrise detail portion. I have no idea how to do this.
  All I want to keep my json like this,</p>
  
  <pre><code>{
      "id": ${id},
      "name": ${name},
      "price": ${price},
      "tags": [
      {
          "tag": ${tag},
          "tagName": ${tagName}
      }]
  }
  </code></pre>
  
  <p>How could I dynamically make json array <code>tags</code> for details portion from csv data? I want it to be looped as row provided in csv file.</p>
  
  <p>Updated csv</p>
  
  <pre><code>id,name,price,tag,tagname
  1,Zypher,12.50,7|9|11,X|Y|Z
  </code></pre>
  
  <p>It would be great in this format</p>
  
  <pre><code>id,name,price,tag
  1,Zypher,12.50,7:X|9:Y|11:Z
  </code></pre>
  
  <p>tag has two properties dividing by <code>:</code></p>