title: IBM Worklight - Parse JSON response
body: <p>How I can parse JSON response inside my javascript code? After I invoke my worklight adapter, I got this result.</p>
  
  <pre><code>{"linkAccountList": [{
      "accountRule": "1",
      "accountCurrencyISO": "IDR",
      "nickName": "",
      "accountCurrency": "016",
      "accountTypeDisplay": "",
      "accountType": "",
      "accountNo": "1001328000",
      "accountHolderName": "LELY HERNAWATI"
  }, {
      "accountRule": "1",
      "accountCurrencyISO": "IDR",
      "nickName": "",
      "accountCurrency": "016",
      "accountTypeDisplay": "",
      "accountType": "",
      "accountNo": "30000000100677",
      "accountHolderName": "LELY HERNAWATI"
  }, {
      "accountRule": "1",
      "accountCurrencyISO": "IDR",
      "nickName": "",
      "accountCurrency": "016",
      "accountTypeDisplay": "",
      "accountType": "",
      "accountNo": "2003500382",
      "accountHolderName": "LELY HERNAWATI"
  }]
  }
  </code></pre>
  
  <p>Then I store the value inside sessionStorage. </p>
  
  <pre><code>sessionStorage.setItem("linkAccountList", result.invocationResult.linkAccountList);
  </code></pre>
  
  <p>After that I alert the value, it's not what I wanted even already <code>JSON.stringify()</code> it.</p>
  
  <pre><code>linkAccountList :: "[object Object],[object Object],[object Object]"
  </code></pre>
  
  <p>What I want is exactly like result above.</p>
  
  <p>My success function</p>
  
  <pre><code>function welcomeSuccess(result){
      WL.Logger.debug("List retrieve success");
      busyIndicator.hide();
      sessionStorage.setItem("linkAccountList", result.invocationResult.linkAccountList);
      WL.Logger.debug("linkAccountList :: " + JSON.stringify(sessionStorage.linkAccountList));
  }
  </code></pre>