title: Google Apps Script PropertiesService Unexpected Token in Obj Literal
body: <p>I am using Google Apps PropertyService to store some settings variables. When I use the setProperties() function and give it an object (just like they do in the <a href="https://developers.google.com/apps-script/reference/properties/properties#setProperties(Object)" rel="nofollow noreferrer">documentation</a>) and then try to get a property and parse it I am getting a <code>SyntaxError: Unexpected Token in Object Literal</code>.</p>
  
  <p>The PropertiesService is emptied before I run this code. As far as I understand I am getting a string back that I should be able to parse into an object.</p>
  
  <pre><code>function setDefaults(){
    var def = {
      config: {
        isSetup: false
      },
      test: {
        page: true
      }
  }
  
  var docServ = PropertiesService.getDocumentProperties();
  docServ.setProperties(def, true);
  
  log(typeof docServ.getProperty("config")); //string
  log(docServ.getProperty("config")); //{isSetup=false}
  log(JSON.parse(docSer.getProperty("config"))); //SyntaxError
  }
  </code></pre>