Streaming-safe partial-JSON repair + parse operations. Grouped into an object so the helpers stay file-local members rather than loose top-level functions.
Complete a partial/truncated JSON string so Json.parseToJsonElement can read it. Returns "" when nothing valid was scanned (e.g. a lone -). See parsePartialJson for the parse wrapper.