title: Not able to read nested properties from doPost(e)
body: <p>I am trying to create a webservice using the Contentservice in Apps Script and <code>doPost(e)</code> function to interact with Google Apps AdminDirectory service</p>
  
  <p>Here is the overview of my code. I saved this as my server and published it as a websapp</p>
  
  <pre><code>function doPost(e) {
    var data = e.parameter;  
    var resourceType = data.resourceType;
    var method = data.method;
    var resource = data.resource;
  
    var resourceParams = resource.parameters;
  
  //other code to work with AdminDIrectory
  // return ContentService.createTextOutput(myoutputdata).setMimeType(ContentService.MimeType.JSON);
  }
  </code></pre>
  
  <p>In my client code which I wrote using Apps Script to test the webservice</p>
  
  <pre><code>function test() {
    var jsonData = {
      authKey : 'HwZMVe3ZCGuPOhTSmdcfOqsl12345678',
      resourceType : 'user',
      method : 'get',
      resource : {
        parameters : {
          userKey : 'waqar.ahmad@mydomain.com'
        }
      }
    }
  
    var url = 'https://script.google.com/macros/s/xyzabc12345678_wE3CQV06APje6497dyI7Hh-mQMUFM0pYDrk/exec';
  
    var params = {
      method : 'POST',
      payload : jsonData
    }
  
    var resp = UrlFetchApp.fetch(url, params).getContentText();
  
    Logger.log(resp);
  }
  </code></pre>
  
  <p>Now when I try to read <code>e.parameter.resource.parameters</code> on server side, it gives error and shows that e.parameter.resource is string type.
  How I can read nested objects on server side? It seems, it is recognizing only first level parameters.</p>