title: phonegap: trying to store json in database:
body: <p>I am trying to store an entry with the following json String in a database. However, it seems like the format of the json string is not agreeing with the db even though I have read articles saying this should be easy: </p>
  
  <p>I have tried: </p>
  
  <pre><code>function Activity() {
      this.clicks = 100;
      this.activityTypeCode = 3;
  }
  
      var anActivity=new Activity(); 
      var jsonString=JSON.stringify(anActivity);
      database.transaction(function(tx) {
           tx.executeSQL('INSERT INTO MYTABLE(ID, DATA) VALUES (100,'+jsonString+')');  
      }, errorCB, successCB)
  
  ;
  </code></pre>
  
  <p>and I get an error that says error unrecognized token "{". 
  when I do console.log(jsonString) I get: </p>
  
  <pre><code>{"clicks":100, "activityTypeCode":3}
  </code></pre>
  
  <p>Any assistance would be appreciated. </p>