OptionalidPresent on requests, responses, and errors.
OptionaljsonParsed JSON value, or undefined if the line was not valid JSON.
OptionalmethodPresent on requests and notifications. For responses we fill this in from the correlator (responses carry no method on the wire).
A parsed JSON-RPC 2.0 message.
rawis the exact source line so we can relay byte-for-byte when no rule touches it (NFR-1 transparency).