title: get json string at server side in php-wordpress
body: <p>hy,i am working on a wordpress plugin in which i require to delete multiple items using checkbox.when i check all rows and delete them i get their row id in the form of json string.
  js code:</p>
  
  <pre><code>$('.check_it:checked').each(function (i){
                              c[i]=$(this).val();                         
                          });         
  
                          var chk = JSON.stringify({ list: c });
                          debugger
  
                          $.ajax({
                                          type:"POST",
                                          data: chk,
                                          url:'/word/wp-content/plugins/craiglist/action.php?action=delete_leads',
                                          dataType: "json",
                                          success:function(response){
                                                              alert('fdsfsfdsfd');                    
                                              },  
                                          failure:function (response) {
                                                  alert("Please Try Again");
                                              },
                                          error:function (xhr, status, error) {
  
                                                  alert(xhr.response);           
                                              }
                                      });
  </code></pre>
  
  <p>In var chk i got string like </p>
  
  <pre><code>"{"list":["151","152","153","154","155","156","157","158","159","160","161","162","163","164","165","166","167","168","169","170","171","172","173","174","175"]}"
  </code></pre>
  
  <p>how can i get it at server side in php and send it to database so i can delete the so called rows.</p>