Have datatable and selecting multiple records across multiple pages and trying to convert all selected records data as JSON data structure. I tried below code and getting JSON data and also two extra fields, could you please help me how to remove "check":true,"checked":true in json data.
fnGetJsonData(){
console.log(JSON.stringify(this.persons.filter(f => f.checked)));
}
output:
[{"id":860,"firstName":"Superman","lastName":"Yoda","dropdown":"yuvi","check":true,"checked":true}]
expected JSON data:
[{"id":860,"firstName":"Superman","lastName":"Yoda","dropdown":"yuvi"]