0
Rasi posted
How to Remove a JSON attribute in JavaScript ?
var jsonObj = {'serachResult' : {'title1' : 'description1', 'title2' : 'description2','title3' : 'description3',}}
suppose i need to remove title2 or description2 or full pair of second search result .
so it end result should be
var jsonObj = {'serachResult' : {'title1' : 'description1','title3' : 'description3',}}
or
var jsonObj = {'serachResult' : {'title1' : 'description1', 'title2' : '','title3' : 'description3',}}
how to remove a key or value or full key / value pair from JSON which is received by Ajax in JavaScript ?