←back to thread

115 points graderjs | 1 comments | | HN request time: 0.286s | source
Show context
sillysaurusx ◴[] No.25004844[source]
Amusingly, this is almost identical to how HN’s database works. Or worked.

It wasn’t json, but it probably could’ve been.

replies(2): >>25005309 #>>25005392 #
dheera ◴[] No.25005392[source]
I'd go for YAML instead of JSON, or "JSON with trailing commas", or else the diffs become messy.
replies(1): >>25005450 #
1. jeswin ◴[] No.25005450[source]
YAMLs biggest advantage over JSON: records can be appended (at the end of an existing file). Which you can't do with JSON objects, arrays etc because of the closing bracket at the end.