Elektrine lite

← Feed

@AthanSpod@social.linux.pizza

Post #835433

2026-03-29 09:50 UTC

@tomasekeli@plud.re @beko The term I see for it is JSONL (JSON, Linebreak-delimited). The point is that it updates live with the game events, so it *can't* be an array of lines, as that would require replacing the closing "]" with ", { ... }]" each time. The documentation for the Journal (and associated files) is quite clear: "The Player Journal is written in line-delimited JSON format (see json.org and jsonlines.org), ...". But, yeah, after any restart of code you need to remember where you left off parsing a file, and otherwise it's best to 'tail' the file, not repeatedly open and parse the whole thing.

Replies (0)

No replies.