The following is a raw transaction I created:
If you open up the debug window / console in bitcoin core and type in decoderawtransaction with the above, you’ll see json output. Likewise if you go to https://blockchain.info/decode-tx.
If you open up Peerunity and go to the debug window / console, decoderawtransaction with the above will throw an error saying “TX decode failed (code -22)”.
If you can identify precisely why this is the case and suggest the fix, I’ll send you 50 ppc.