Inputting the output of "decoderawtransaction" into "createrawtransaction" results in an error, I want to make a small change to a transaction before I sign it manually (Add a "lock_time", I want to see how it works), but, I can't seem to be able to do it.
Here's my hex string:-
0100000001f699454faacb036aab2411e38ea00f5db9ffa7e831432c8945e8f0e21c7f26620000000000ffffffff0228397100000000001976a914b0c8172cbdc5ef9962574fbf945d7d39b4f2738788ac40420f00000000001976a914c37e2eb773d2314f92dc078f0c3a8277accc65f588ac00000000010000000137268479bae60a643efbc656957b3e18d328d373af03db164633a1c63eb3fa38010000008b483045022100da354c1d60683b69656bb9c8e5d1f0c39a1c2c7d06ee0058b8f1dd4f455e41a50220063268fbf586095994a0b5cb2c1369a4a2bd365b83dd262baf992d1f81cfeac901410431676a8a5bd9629598daf9bd8249d4d6ce8298dbf26bb5d9cd7e3092d3c12be051c8bce0a4ecf6ec219e6b99259c5256641a7c00d18e2c48e728f4fdc0705438ffffffff02687b8000000000001976a914e6e58a7f6393bd51adaf6865ada8ca151ecd30b588ac46fe620d000000001976a914079c4a24d14153c77aa71a3ca451afd60fcc119388ac00000000
decodes into:-

{
"txid": "2150f5a18448b5cafe5f0a41d8c61606178d52fca52a8e53f486a288dd433caa",
"version": 1,
"locktime": 0,
"vin": [{
"txid": "62267f1ce2f0e845892c4331e8a7ffb95d0fa08ee31124ab6a03cbaa4f4599f6",
"vout": 0,
"scriptSig": {
"asm": "",
"hex": ""
},
"sequence": 4294967295
}],
"vout": [{
"value": 0.07420200,
"n": 0,
"scriptPubKey": {
"asm": "OP_DUP OP_HASH160 b0c8172cbdc5ef9962574fbf945d7d39b4f27387 OP_EQUALVERIFY OP_CHECKSIG",
"hex": "76a914b0c8172cbdc5ef9962574fbf945d7d39b4f2738788ac",
"reqSigs": 1,
"type": "pubkeyhash",
"addresses": [
"1H7jdJ9bfkoj45pnwrXyJ7xxCeJx3Mmfx6"
]
}
}, {
"value": 0.01000000,
"n": 1,
"scriptPubKey": {
"asm": "OP_DUP OP_HASH160 c37e2eb773d2314f92dc078f0c3a8277accc65f5 OP_EQUALVERIFY OP_CHECKSIG",
"hex": "76a914c37e2eb773d2314f92dc078f0c3a8277accc65f588ac",
"reqSigs": 1,
"type": "pubkeyhash",
"addresses": [
"1JpfvikTE3jF3YG9XPswibceZMfGVi4nFa"
]
}
}]
}
Piping that back in as:-

{
"txid": "2150f5a18448b5cafe5f0a41d8c61606178d52fca52a8e53f486a288dd433caa",
"version": 1,
"locktime": 284300,
"vin": [{
"txid": "62267f1ce2f0e845892c4331e8a7ffb95d0fa08ee31124ab6a03cbaa4f4599f6",
"vout": 0,
"scriptSig": {
"asm": "",
"hex": ""
},
"sequence": 4294967295
}],
"vout": [{
"value": 0.07420200,
"n": 0,
"scriptPubKey": {
"asm": "OP_DUP OP_HASH160 b0c8172cbdc5ef9962574fbf945d7d39b4f27387 OP_EQUALVERIFY OP_CHECKSIG",
"hex": "76a914b0c8172cbdc5ef9962574fbf945d7d39b4f2738788ac",
"reqSigs": 1,
"type": "pubkeyhash",
"addresses": [
"1H7jdJ9bfkoj45pnwrXyJ7xxCeJx3Mmfx6"
]
}
}, {
"value": 0.01000000,
"n": 1,
"scriptPubKey": {
"asm": "OP_DUP OP_HASH160 c37e2eb773d2314f92dc078f0c3a8277accc65f5 OP_EQUALVERIFY OP_CHECKSIG",
"hex": "76a914c37e2eb773d2314f92dc078f0c3a8277accc65f588ac",
"reqSigs": 1,
"type": "pubkeyhash",
"addresses": [
"1JpfvikTE3jF3YG9XPswibceZMfGVi4nFa"
]
}
}]
}
Results in "Error: Error parsing JSON:{txid" or "Error: Error parsing JSON:{", depending on if I copy it formatted or all on one line. The format of createrawtransaction (createrawtransaction [{"txid":txid,"vout":n},...] {address:amount,...}) is obviously different to the output of decoderawtransaction, so, what's the best way of doing this?