Verify custom MarshalJSON output cannot contain newlines.