Open sneak opened 7 years ago
Yhea .. it's not real json .. it is the output of pprint
which just looks like json ...
I should probably change pprint and make it a print(json.dumps(x, indent=4))
In the meantime, you can still load the file into python using
with open(args.file) as fp:
tx = fp.read()
json_tx = eval(tx)
The docs suggest the following:
Installed fine. Testing, per the docs:
piston -x transfer --account xeroc fabian 0.001 SBD > unsigned-transaction.json
This outputs the following to
unsigned-transaction.json
:Then, trying to parse:
Turns out, json requires double quotes. Single-quoted keys and strings are invalid json.