tst2005sh / jsondiff

0 stars 0 forks source link

Alternative json diff notation #1

Open wader opened 1 year ago

wader commented 1 year ago

Hey, was poking around in your various jq repos for inspiration. Nice to find someone else have thought about how to represent diffs between json values as json, might steal this notation for use with some fq snippet.

Also maybe this code can be interesting? https://github.com/wader/fq/blob/6279cda7bca7e31cc2da772ce235b85ff5289dae/pkg/interp/funcs.jq#L120-L143 with some effort it can probably be used to output "path"-diffs also if your looking for a pure jq-version.

tst2005 commented 1 year ago

Thanks for your feedback! Oh, I did not worked on my jsondiff for a while ! Each time I tried to convert to a jq-only solution ... I had performance issues that forced me to revert to use the diff command. Note: I only got performance issue on big dataset (that exists at my work).

If I can get free time, I will consider your code ! ;-)

wader commented 1 year ago

Aha yes, i have no idea how performant my version is, so could be problem.