How to delete values in json-jquery-array?
<p>my php file returned a json array full of values.</p>

<pre><code>$positions = array();
while($row = mysqli_fetch_assoc($abfrage)){
array_push( $positions, array('posID' =&gt; $row['posID'],'pos1' =&gt; $row['pos1'], 'pos2' =&gt; $row['pos2']));        

}

@mysql_close($connection);
echo json_encode(array("positions" =&gt; $positions));
exit; 
</code></pre>

<p>Now in my js-File i want to delete a data set where posID == x for example,
but i dont how to do it</p>

<pre><code>$.each(positions, function(i, v){
   if(v.posID == id){
 ... delete data set ...
}
});
</code></pre>

<p>Please help!</p>
