You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
How to implement a "before/after" diff of a json file #12
I want to find the difference between two json files of unknown structure, showing which entries have been added, changed and removed.
asdf.transform.AsdfNode has added and removed and that's part of the way to doing this, but actually not very convenient. Obviously I can write code to walk the AsdfNode tree by hand, but it seems like AsdfNode should be more helpful here as it's a common class of tasks
Activity
John-Colvin commentedon Dec 7, 2020
should I be looking at
mir-ioninstead?9il commentedon Dec 8, 2020
Interesting.
AsdfNodeisn't good for that, Asdf number is actually a string.We need a new type for that, like
or
Would RFC6902 work for you? For example, ruby implementation of JSON patch computation.
A possible API can look like
This can be an independent algorithm from Asdf and Ion and we can implement conversion utilities between
JsonNodeand actual JSON backends.