Re: Comparing JSON/yaml files




On Mon, Jul 24, 2017 at 4:51 AM, Kai Willadsen <kai willadsen gmail com> wrote:
On Jul 24, 2017 9:09 PM, "standa mitrega" <standa31415 gmail com> wrote:

Hi all


Are there any ideas / plans to use meld as tool to compare json files?
Comparing json files as plain text files doesn't provide best results. It's better if there is some context-aware comparison on each level of json strucure.

Or maybe yaml files. As json is just subset of yaml.

Was there discussion regarding such functionality?

I'm not sure what you had in mind, but if you're thinking of doing a structure aware comparison, then no that's not a thing that Meld is likely to do. The algorithms for doing this are extremely different to a standard diff, and the user interface would also have to be quite different.

Cheers,
Kai

_______________________________________________
meld-list mailing list
meld-list gnome org
https://mail.gnome.org/mailman/listinfo/meld-list


If you need to diff JSON files (or any structured text for that matter), I'd suggest you find/write an app that pretty-prints the text; one element per line, (ie lots of new-lines) and then run meld on the two post processed files.



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]