Method callback returning object with different format

Hi,

I am calling a method, which prints the following object on the server side console:

I20171231-14:28:50.163(1)? [ <UnspentOutput: 4b6885ec1fe87d80d8daf9ceb37a1ab76ae10a3727482ec0720b7917ed1f62e3:0, satoshis: 1000000, address: mufVkm3Ft1mMribAVhrCi8mk2ZuiQX7d6Y>,

I20171231-14:28:50.164(1)?   <UnspentOutput: 577b54ac99686835aec00daff425c38cbf1efb8ee3c555e8278ac977eb39e56a:0, satoshis: 50000, address: mufVkm3Ft1mMribAVhrCi8mk2ZuiQX7d6Y>,

I20171231-14:28:50.164(1)?   <UnspentOutput: 4a41be62e5077cc987bb74f7c9037a1e31445fa645733c7f60823922c5c21c3b:0, satoshis: 577777, address: mufVkm3Ft1mMribAVhrCi8mk2ZuiQX7d6Y> ]

Once it is returned via the callback to the client, I get this (jsonified):

[{“address”:{“hashBuffer”:{“0”:155,“1”:47,“2”:89,“3”:188,“4”:54,“5”:70,“6”:2,“7”:139,“8”:26,“9”:207,“10”:198,“11”:226,“12”:53,“13”:73,“14”:223,“15”:225,“16”:228,“17”:19,“18”:159,“19”:199},“network”:{“name”:“testnet”,“alias”:“regtest”,“pubkeyhash”:111,“privatekey”:239,“scripthash”:196,“xpubkey”:70617039,“xprivkey”:70615956,“port”:18333,“networkMagic”:{“0”:11,“1”:17,“2”:9,“3”:7},“dnsSeeds”:[“testnet-seed.bitcoin.petertodd.org”,“testnet-seed.bluematt.me”,“testnet-seed.alexykot.me”,“testnet-seed.bitcoin.schildbach.de”]},“type”:“pubkeyhash”},“txId”:“4b6885ec1fe87d80d8daf9ceb37a1ab76ae10a3727482ec0720b7917ed1f62e3”,“outputIndex”:0,“script”:{“chunks”:[{“opcodenum”:118},{“opcodenum”:169},{“buf”:{“0”:155,“1”:47,“2”:89,“3”:188,“4”:54,“5”:70,“6”:2,“7”:139,“8”:26,“9”:207,“10”:198,“11”:226,“12”:53,“13”:73,“14”:223,“15”:225,“16”:228,“17”:19,“18”:159,“19”:199},“len”:20,“opcodenum”:20},{“opcodenum”:136},{“opcodenum”:172}]},“satoshis”:1000000},{“address”:{“hashBuffer”:{“0”:155,“1”:47,“2”:89,“3”:188,“4”:54,“5”:70,“6”:2,“7”:139,“8”:26,“9”:207,“10”:198,“11”:226,“12”:53,“13”:73,“14”:223,“15”:225,“16”:228,“17”:19,“18”:159,“19”:199},“network”:{“name”:“testnet”,“alias”:“regtest”,“pubkeyhash”:111,“privatekey”:239,“scripthash”:196,“xpubkey”:70617039,“xprivkey”:70615956,“port”:18333,“networkMagic”:{“0”:11,“1”:17,“2”:9,“3”:7},“dnsSeeds”:[“testnet-seed.bitcoin.petertodd.org”,“testnet-seed.bluematt.me”,“testnet-seed.alexykot.me”,“testnet-seed.bitcoin.schildbach.de”]},“type”:“pubkeyhash”},“txId”:“577b54ac99686835aec00daff425c38cbf1efb8ee3c555e8278ac977eb39e56a”,“outputIndex”:0,“script”:{“chunks”:[{“opcodenum”:118},{“opcodenum”:169},{“buf”:{“0”:155,“1”:47,“2”:89,“3”:188,“4”:54,“5”:70,“6”:2,“7”:139,“8”:26,“9”:207,“10”:198,“11”:226,“12”:53,“13”:73,“14”:223,“15”:225,“16”:228,“17”:19,“18”:159,“19”:199},“len”:20,“opcodenum”:20},{“opcodenum”:136},{“opcodenum”:172}]},“satoshis”:50000},{“address”:{“hashBuffer”:{“0”:155,“1”:47,“2”:89,“3”:188,“4”:54,“5”:70,“6”:2,“7”:139,“8”:26,“9”:207,“10”:198,“11”:226,“12”:53,“13”:73,“14”:223,“15”:225,“16”:228,“17”:19,“18”:159,“19”:199},“network”:{“name”:“testnet”,“alias”:“regtest”,“pubkeyhash”:111,“privatekey”:239,“scripthash”:196,“xpubkey”:70617039,“xprivkey”:70615956,“port”:18333,“networkMagic”:{“0”:11,“1”:17,“2”:9,“3”:7},“dnsSeeds”:[“testnet-seed.bitcoin.petertodd.org”,“testnet-seed.bluematt.me”,“testnet-seed.alexykot.me”,“testnet-seed.bitcoin.schildbach.de”]},“type”:“pubkeyhash”},“txId”:“4a41be62e5077cc987bb74f7c9037a1e31445fa645733c7f60823922c5c21c3b”,“outputIndex”:0,“script”:{“chunks”:[{“opcodenum”:118},{“opcodenum”:169},{“buf”:{“0”:155,“1”:47,“2”:89,“3”:188,“4”:54,“5”:70,“6”:2,“7”:139,“8”:26,“9”:207,“10”:198,“11”:226,“12”:53,“13”:73,“14”:223,“15”:225,“16”:228,“17”:19,“18”:159,“19”:199},“len”:20,“opcodenum”:20},{“opcodenum”:136},{“opcodenum”:172}]},“satoshis”:577777}]

Why does meteor change the formatting of my object? I would to get on the client the exact original format. How can I do so?

Thanks

Mike

Can we see your method code and your calling code, please?

Thank you for your feedback. I found a way to sort it out by converting the object to an array before transmission to the client…