←back to thread

115 points graderjs | 1 comments | | HN request time: 0.567s | source
Show context
andreareina ◴[] No.25005050[source]
Could use an example of the database file and diffs.

I have vague recollections of a tool that was similarly supposed to make JSON files diffable. IIRC it procedurally built up the object, so {"foo": {"bar": "baz", "quux": [1, 2, 3]}} would be:

    foo = {}
    foo.bar = "baz"
    foo.baz = []
    foo.baz[0] = 1
    ...
replies(3): >>25005118 #>>25005451 #>>25005522 #
1. graderjs ◴[] No.25005451[source]
The example was a good idea, thanks! I added it