I am sorry if this is a duplicate, so far I couldn't find the same question.
I have an Object with various methods in my __proto__
member.
Let's call the type of this object myObjectType
.
Later on I have to do a JSON.stringify(myObjectType)
. The problem is that then when I build my object from the previous obtained JSON string the type of my Object is plain Object
, I lost all the methods I had.
Does any one see why ?