MarshalObject uses a shimmed 'encoding/json' from Go 1.24, to support the 'omitzero' tag Stability for the API of MarshalObject is not guaranteed.
(f T, underlying any)
| 34 | // |
| 35 | // Stability for the API of MarshalObject is not guaranteed. |
| 36 | func MarshalObject[T ParamStruct](f T, underlying any) ([]byte, error) { |
| 37 | return MarshalWithExtras(f, underlying, f.extraFields()) |
| 38 | } |
| 39 | |
| 40 | // MarshalWithExtras is used to marshal a struct with additional properties. |
| 41 | // |
searching dependent graphs…