logoalt Hacker News

okanat12/08/20241 replyview on HN

This is also the reason I prefer XML to JSON when things really got complex. XML is verbose but it is very readable on long form. I wish Rust actually used JSON or XML as Cargo file format.


Replies

Alex-Programs12/08/2024

I think it works quite nicely in Cargo as you don't generally need much nesting, but anything with depth should use JSON. It's the perfect format for clearly displaying hierarchy.

show 1 reply