I am running node express server and I am using
$.ajax({
url: this.props.url,
dataType: 'json',
cache: false,
success: function(data) {
this.setState({data: data});
}.bind(this),
error: function(xhr, status, err) {
console.error(this.props.url, status, err.toString());
}.bind(this)
});
to get data inside json on the server. json with data looks like this:
[
{
"id": 1453464243666,
"text": "abc"
},
{
"id": 1453464256143,
"text": "def"
},
{
"id": 1453464265564,
"text": "ghi"
}
]
How (what request to execute) delete \ modify any object in this json?
source
share