When saving a number of a file with indent=1, nothing is written:
>>> rapidjson.dumps(100,indent=1)
'100'
however
with open("zzz","w") as fd:
rapidjson.dump(100,fd,indent=1)
creates an empty file zzz.
Note that
with open("zzz","w") as fd:
rapidjson.dump(100,fd)
and
with open("zzz","w") as fd:
rapidjson.dump([100],fd,indent=1)
work correctly as expected.
When saving a number of a file with
indent=1, nothing is written:however
creates an empty file
zzz.Note that
and
work correctly as expected.