title: Groovy Variable $ Dollar Sign in JSON
body: <p>I've got a JSON file that I am slurping with groovy.</p>
  
  <pre><code>{
  "team": "${GLOBAL_TEAM_NAME}",
  "jobs": [
      {
  </code></pre>
  
  <p>In the JSON above is a property 'team' that contains a groovy-like variable I want to be resolved at runtime.</p>
  
  <pre><code>teamList.each { tl -&gt; 
  
  try
  {
      def teamSlurper = new JsonSlurperClassic()
      def t = teamSlurper.parseText(tl.text)
  
      println "*********************"
      println "PROVISIONING JOB FOR: " + t.team
  </code></pre>
  
  <p>Output:</p>
  
  <blockquote>
    <p>PROVISIONING JOB FOR: ${GLOBAL_TEAM_NAME}</p>
  </blockquote>
  
  <p>The above outputs the raw value, but I would like it to resolve the global variable that has been defined for the system.</p>
  
  <p>How can I resolve <code>${GLOBAL_TEAM_NAME}</code> to its actual system value?</p>