title: how to insert json Data into Sqlite DB in PhoneGap
body: <p>We tried to <code>JSON</code> data insert to <code>SqlLit</code>.We need <code>JSON</code> Data insert into <code>SqlLit</code>.So first we crate Table and then tried to Insert <code>JSON</code> valu in table but it's not work.So Please tell me what wrong in my code</p>
  
  <pre><code>function startup() {
  alert("1");
      console.log("Starting up...");
        db = window.openDatabase("Database", "1.0", "Cordova Demo",10485760);
      db.transaction(function(tx){
      alert("2");
           tx.executeSql('DROP TABLE IF EXISTS HEADER_DATA');
            tx.executeSql("create table if not exists docs(id INTEGER PRIMARY KEY AUTOINCREMENT, language TEXT, cookie TEXT, host TEXT, control TEXT)");
      },function(tx,error){
      alert("3");
          console.log('tx error: ' + error);
      },function(){
      alert("4");
          console.log('tx success');
           insert();
      });
  }
  </code></pre>
  
  <p>For Insert:--</p>
  
  <pre><code>function insert(){
  alert("5");
  var output = $('#output').text('Refreshing documentation...');
   //$("#docs").html("Refreshing documentation...");
  
   $.ajax({
              url: 'http://headers.jsontest.com/',
              type: 'GET',
              contentType: "application/json;charset=utf-8",
              success: function (data) {
              alert("6");
                  // iterate over data and save it to DB
                  output.empty();
  
                  $.each(data, function(i,item){ 
                  alert("7");
                   tx.executeSql('INSERT INTO docs (id, language, cookie, host ,control) VALUES(' + item.id + ', "' + item.Accept-Language + '", "' + item.Cookie + '", "' + item.Host + '", "' + item.Cache-Control+'")');
          }); 
  
                      output.append(landmark);
                  });
  
  
              },
              error: function (x, y, z) {
                  alert(x.responseText);
              }
          });
  
  
  }
  my json :--
  
  {
     "Accept-Language": "en-US,en;q=0.8",
     "Cookie": "__hbblk_headersjsontestcom=0",
     "Host": "headers.jsontest.com",
     "User-Agent": "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/39.0.2171.65 Safari/537.36",
     "Via": "1.1 FFTMG",
     "Accept": "text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8",
     "Cache-Control": "max-age=0"
  }
  </code></pre>
  
  <p>in my code table Creation success but when tried to insert data into table it's not worked .so Please give me any small example for JSON data insert into SqlLit DB.</p>