title: how to access nested JSON object values using javascript
body: <p>I am facing issue in converting json response in a required format.
  Request:</p>
  
  <pre><code>{
     "firstName": "ABC",
     "middleName": "V",
     "AddrCity": "CITY",
     "AddressLine2": "ADDRESS LINE 2",
     "LastName": "LASTNAME",
     "AddressLine1": "ADDR LINE1",
     "Country": "India",
     "customerId": "1234",
     "AddrPinCode": "999999"
  }
  </code></pre>
  
  <p>Below is the response i am getting
  Response: </p>
  
  <pre><code>{"return": 
   {
     "response": [{"$": 1234}],
     "responseMessage": [{"$": "Success ABC"}],
     "responseCode": [{"$": "CITY,India"}]
   }
  }
  </code></pre>
  
  <p>Notice the "$" symbol, which is giving problem while fetching the response. 
  Below is the expected response and also need to fetch response, responseMessage &amp; responseCode values accordingly</p>
  
  <pre><code>{"return": 
   {
     "response": 1234,
     "responseMessage": "Success ABC",
     "responseCode": "CITY,India"
   }
  }
  </code></pre>
  
  <p>Thanks for your quick response in advance.</p>