title: jmeter vars.put with an object javascript
body: <p>I'm trying to use <code>vars.put</code> to write the result of the property of an object in a jmeter variable in javascript, but i have an issue...</p>
  
  <p>Here is my code:</p>
  
  <pre><code>eval('var obj = ' + prev.getResponseDataAsString());
  var meta_key = vars.get("MetaKey"); //meta_key is a variable
  </code></pre>
  
  <p>This works fine:</p>
  
  <pre><code>vars.put("content_metakey", obj[meta_key]); 
  </code></pre>
  
  <p>but when i do this, it's doesn't work:</p>
  
  <pre><code>vars.put("taille", obj.meta_key[0].id); //meta_key variable
  vars.put("taille", obj.tag[0].id); //tag is the value
  </code></pre>
  
  <p>Do you have any clue?</p>
  
  <p>Thanks for your help. </p>