Closed rjp closed 2 years ago
Currently both json and json-pretty outputs are the same compact format - probably because they're both using the same to_writer call from serde_json. Changing the json-pretty output to use to_writer_pretty gives the desired effect.
json
json-pretty
to_writer
serde_json
to_writer_pretty
Woops! Cheers.
fastnbt-tools 0.23.0 should now have this change.
Turns out I closed the PR rather than merged it. Sorry @rjp. It should now be in fastnbt-tools 0.23.1. :D
Currently both
json
andjson-pretty
outputs are the same compact format - probably because they're both using the sameto_writer
call fromserde_json
. Changing thejson-pretty
output to useto_writer_pretty
gives the desired effect.