Expose useJSONMarshaler option in NewEncoder
fordneild opened this issue · comments
Motivation
The k8s library corev1 "k8s.io/api/core/v1"
uses a custom JsonMarshaller to deal with union types. I notice you added functionality to make use of JsonMarshaller, via useJSONMarshaler
, for such usecases, which i am thankful for.
Problem
However, im unable to set this option in the NewEncoder.
Proposed Solution
expose the ability to set this option somehow
Never mind, i found a way to do this with UseJSONMarshaler