fix getPayload using complex objects on node.js (CLI console)