I would want that at passing an object at JSON.Stringify, it checks if it has a field like “val” for stringify only that field, else been stringfied everything.
Is possible to change JSON.Stringify to stringy only a determined field?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
It’s quite simple:
You generally must not modify system functions. It’s very bad idea. But if you have to do it, it can be done like that:
At least, it works in Firefox. But I don’t know if it will work on any other JS implementation or not.