OK Here is the answer (which is incompatible with IE):
json.__proto__ = MyClass.prototype;
Fortunately, I do not need% $@ $% # IE in my application.
(When I do this, there is another possibility: to create a wrapper function in the MyClass prototype shell that copies all the properties from JSON to a new object, shallow copying should be sufficient).
Alexander Temerev
source share