Logs: read the fields of an entry from a JSON log file #246

Merged
jcoffey-dev merged 1 commits from feat/456-json-log-fields into main 2026-11-18 22:00:20 +00:00
1 Commits
Author SHA1 Message Date
jcoffey-dev f85fda5cfb Logs: read the fields of an entry from a JSON log file
ci / build (pull_request) Skipped
ci / publish (pull_request) Skipped
ci / notices (pull_request) Successful in 1m3s
github/ci (branch) GitHub Actions
ci / github (pull_request) Successful in 2m38s
A Log tracer can write JSON lines (inbuxa-server #456). For those entries
the server hands back the event's fields as a JSON object in `details`
instead of `key = value` text, so the Logs page reads them as written:
strings as they are, numbers, lists and nested events as JSON. Text
entries are parsed as before, and a file holding both reads both.

The JSON export keeps a JSON entry's fields typed rather than as strings.

Test: parseFields and jsonFields on JSON objects, other JSON and plain
text; the export keeps typed fields.
2026-11-18 14:57:15 -07:00