Sorting and comparing JSON files
Hi,
Just for your consideration, currently there are no really easy way to comparing the content of JSON files.
Obviosly, they are unordered, being dict-like.
However, they can be ordered anyway, and that would be very useful also when just looking in them (and debugging dicts in general), as that tends to be extra annoyingly difficult as the structure constantly changes.
A simple recursive sorting feature would make that far easier in both cases.
WRT the comparison case, and to make that really good, it would have to look a couple of levels down to see how to sort, but just a simple recursive sort would be a significant improvement.
Thanks in advance,
Nicklas
Just for your consideration, currently there are no really easy way to comparing the content of JSON files.
Obviosly, they are unordered, being dict-like.
However, they can be ordered anyway, and that would be very useful also when just looking in them (and debugging dicts in general), as that tends to be extra annoyingly difficult as the structure constantly changes.
A simple recursive sorting feature would make that far easier in both cases.
WRT the comparison case, and to make that really good, it would have to look a couple of levels down to see how to sort, but just a simple recursive sort would be a significant improvement.
Thanks in advance,
Nicklas
1 条评论
排序方式
日期
投票数
That would obviously also be applicable to XML and other similar notations where items are unordered.
请先登录再写评论。