title: Adding Postman Variables in JSON Post Body inside key name fields
body: <p>So i have been making my postman collections as dynamic as possible, replacing all static content that only changes slightly during different API calls into variables, to decrease workload by quite a lot.</p>
  
  <p>I have one thing left that i just cannot get to work, and that is building parts of the JSON body with Variables.</p>
  
  <p>Here is the outcome i want, key values on the right works just fine:</p>
  
  <pre><code>{
    "act.getEntries": {
      "act.authToken": "{{authToken}}",
      "act.resourceId": "{{activelistid}}"
    }
  }
  </code></pre>
  
  <p>I want to make the prefix dynamic for all my json arrays, like so:</p>
  
  <pre><code>{
    "{{prefix}}.getEntries": {
      "{{prefix}}.authToken": "{{authToken}}",
      "{{prefix}}.resourceId": "{{activelistid}}"
    }
  }
  </code></pre>
  
  <p>I cannot use JS function in the JSON body, so i am limited to only escaping (so using ""''+)</p>
  
  <p>I tried doing something like this:</p>
  
  <pre><code>{
    "\"" + '{{prefix}}'.getEntries": {
      "act.authToken": "{{authToken}}",
      "act.resourceId": "{{activelistid}}"
    }
  }
  </code></pre>
  
  <p>But in the end, that produced a request body like so:</p>
  
  <pre><code>"{
  
   "\"" + ""act." + ".getEntries": {
  
   "act.authToken": "CJvGphuWp4wXOgJq1T6Yr0e_5aU1fvs2pXFDvJPBRnw.",
  
   "act.resourceId": "Hp2hTKmMBABDdFhotbrvBdw=="
  
   }
  
   }"
  </code></pre>
  
  <p>If anyone tried this before, please let me know, or else i will just mark it as not supported.</p>
  
  <p>In pre-request and post-request tests i can use proper functions so it is easy, even the URL is created from variables, but the body seems impossible..</p>
  
  <p>Outside of the Body, while still limited, i can easily insert variables into strings like so:</p>
  
  <pre><code>"reference": {
        "id": "",
        "isModifiable": true,
        "managerID": "iqzGK08BABCAXcbW2VGwrg==",
        "referenceName": "ActiveList",
        "referenceString": "&lt;Resource URI=\"/All Active Lists/Personal/" + pm.variables.get("login") + "'s Active Lists/" + activeListName + "\" ID=\"\"/&gt;",
        "referenceType": 24,
        "uri": "/All Active Lists/Personal/" + pm.variables.get("login") + "'s Active Lists/" + activeListName + "\""
  </code></pre>