Zolf
asked on
Print JSON object and filter some values
Hi there,
How can I print the JSON data which I get from the server into the toastr. Also I want to filter the quantity_available out.
{"Raw_Material_3":false,"quantity_available":false,"Raw_Material_4":false}
else {
console.log(result);
this.toastr.warning(result, " Not enough Quantity", {
enableHtml: true,
disableTimeOut: true,
closeButton: true,
positionClass: 'toast-top-right'
});
}
ASKER
Thanks for your comment.
I am using Angular and this code is not working, it complains at replaceAll
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
https://jsfiddle.net/
Open in new window
Alternative for the Object.entries is to just use
Open in new window
or similar