Saving object methods in JSON

-3

I'm saving an object with methods but when I give JSON.stringify(obj) it does not save the functions.

I would like to save them for when I give a JSON.parse(str) it returns me the methods of the object as well.

Does not JSON support functions?

    
asked by anonymous 20.12.2018 / 19:26

0 answers