encodeToLine

Serializes event to a single-line JSON string (one .atf record).