'Is there a java/JS library which can compare two json files and produce comparison result as html?

The idea behind the question is to have some library/tool which can compare two json strings and produce comparison result as html. E.g. the way some online comparison tools do.



Solution 1:[1]

I've developed a free online open-source service that you could either use as is or use the library inside the source-code for your own purposes.

The result of the comparison has an "analysis tree" which I don't know if it is what you are looking for, but if it is at least "close" to it, you can use the source code and adapt it to your needs.

I've tried to make it as complete and flexible as possible, but if you find any case I haven't considered, please either submit an issue in Github, or even better, a PR with the change.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 tripleee