Prakash Mondal

Prakash Mondal

  • NA
  • 288
  • 210k

How to clear json object value as empty in javascript/JQuery

Mar 9 2018 5:25 AM
var myObj;
myObj = [{ "name":"John", "age":30, "car":"maruti" },{ "name":"Smith", "age":50, "car":"indica" }];
 
I want to get json
 
[{ "name":"", "age":, "car":"" },{ "name":"", "age":, "car":"" }];
 
please solve this problem.

Answers (3)