Live data from Hacker News

Graphtage: A semantic diff utility for JSON, HTML, YAML, CSV, etc

github.com

51–52 of 52 posts

Re: Graphtage: A semantic diff utility for JSON, HTML, YAML, CSV, etc

#51
post #24

Earlier quoted context omitted.

For fun, you could even use redbean ( https://justine.lol/redbean/index.html ), which has been discussed on here recently. That would give you a tiny executable running a webserver that serves your webapp locally. Probably not much advantage compared to a plain html file, though. Might be smaller overall, since everything would be compressed.

I'm also very impressed by redbean. However, I couldn't get it to work, just like many of the other HNers on that thread.

Right. Worked for me when i tried it with two different web payloads. But i didn't do more than a bit of playing around.

Re: Graphtage: A semantic diff utility for JSON, HTML, YAML, CSV, etc

#52

Earlier quoted context omitted.

It's neat that you built what you needed in a few lines of code. I must say, I don't quite like the output of Graphtage, I like your's a little bit more, but without a context it's not easy to see how podIP is nested. Usecases might be a little bit different, but please allow me to share my solution. The problem with diffing JSON and yaml is, that these formats aren't line based and hashes don't need to be ordered. B…

The diff I did is aware of the structure of the object. It's not just sorted lines.

Yes, I understood this. I was just trying to say that it's not easy for me to recognise the context of a diff in a deep nested yaml or json.
Post reply on HN