I write a Node.js application that get from another app (server) information about instance of some object of the server. The information about object presented as tree with information about node type (method or property, method args, node id, etc).
Is it possible in Node.js to generate some object (like JSON but with functions) at runtime that is a representation of the server object instance to call its methods directly?
Or basically: is it possible to generate object with callable method at runtime in Node.js?