title: Setting values in JSON to default JSON items
body: <p>I am on a Dojo app, is there any special JS parser which enables me default values within JSON data ? </p>
  
  <p>Example, I'd like to set "maxHeadingLength" in item[1] to the value in item[0].  </p>
  
  <pre><code>   {
      items:[
      {
          "class": "pmedia.types.PMPlatformRenderConfiguration",
          "listItemHeight": "70",
          "listItemIconHeight": "60",
          "maxDesktopItemsWithBannerP": "9",
          "maxDesktopItemsWithBannerL": "9",
          "platform": "Default",
          "maxHeadingLength":
          {
              P:300,
              L:400               
          }
        },
        {
          "class": "pmedia.types.PMPlatformRenderConfiguration",
          "listItemHeight": "70",
          "listItemIconHeight": "60",
          "platform": "IPAD",
          "maxHeadingLength": "Default"
        },
  </code></pre>
  
  <p>Something like this would good too : </p>
  
  <p>"maxHeadingLength": "this.items[0].maxHeadingLength"</p>
  
  <p>Thanks</p>
  
  <p>Update, It seems I can and need to precise  the question a bit better now.</p>
  
  <p>I'd like to write any string expression into the pure JSON string data(file), as string of course and evaluate the data within the same data set without using "eval". 
  Thanks to all !</p>