antonmedv / fx

Terminal JSON viewer & processor
https://fx.wtf
MIT License
19.08k stars 438 forks source link

Applying to node.js output doesn't work. #219

Closed ilyador closed 1 year ago

ilyador commented 2 years ago

When piping from a node response it seems unable to read the response as JSON

➜ node app.js     
{
  to: null,
  from: '0x178eA30C5615225C97a880aB1F41BbE2a92230FC',
  transactionIndex: 0,
  gasUsed: BigNumber { _hex: '0x089cf3', _isBigNumber: true },
  blockHash: '0x97b9b9b368aa8dcda0bad769880e3a158f0e63fc0dbbc35f8b0bb93736a6e227',
  transactionHash: '0xd9176bcc54256fee295db100e7e1fbc237297d07a9c6ae0a46bd8c792d90f07e',umber: true },
  status: 1,
  type: 0,
  byzantium: true,
  events: []
}

➜ node app.js | fx
JSON Parse Error: invalid character 't'
antonmedv commented 2 years ago

This is not a json