On Sun, Aug 17, 2025 at 5:09 PM Kristoffer Haugsbakk <kristofferhaugsbakk@xxxxxxxxxxxx> wrote: > > On Sun, Aug 17, 2025, at 22:17, Ron Ziroby Romero wrote: > > I would like to add JSON output to the git log command. > > Previously: https://lore.kernel.org/git/CAGW8g7=21pPAgCixjpayEvmw_ns-hcB4e59NP476TKtCRXHPXQ@xxxxxxxxxxxxxx/ In particular, I would guess that deciding how to handle "raw bytes" (e.g., paths that are not necessarily UTF-8 strings) is important. JSON uses Unicode characters: A string is a sequence of zero or more Unicode characters, wrapped in double quotes, using backslash escapes. A character is represented as a single character string. A string is very much like a C or Java string. https://www.json.org/json-en.html (even though the railroad diagram says "codepoints"; I find the whole thing a bit muddy—what exactly is representable in JSON strings? Excepting a few encoding details, that completely describes the language. ??? which details?) -- D. Ben Knoble