How to escape colon and other special characters while creating a cloudant view in javascript
<p>I have a cloudant db with sample documents as shown below - </p>

<pre><code>{
    "_id": "xyz",
    "_rev": "1-sdsdsdfsdfsdfsdf",
    "a:b:c:d:1.0": {
        "pqr": {
           "insideattribute": "value"
         }
     }
 }
</code></pre>

<p>I need to create a view using following logic -  </p>

<pre><code>function(doc) {
  // insideattribute is not null
  if(doc.a:b:c:d:1.0.pqr.insideattribute) {
     emit(doc._id, doc._rev);
  }
}
</code></pre>

<p>However the javascript syntax goes invalid due to ":" and "." characters in the if condition. Have tried escaping with double quotes but does seem to work. </p>

<p>Is there some other way to escape this ?</p>