hashicorp / sentinel-sdk

This SDK allows developers to extend Sentinel to source external information for use in their policies.
Mozilla Public License 2.0
51 stars 13 forks source link

Add MarshalJSON for sdk.Null, ensuring conversion the same as Go nil #86

Closed cam-stitt closed 2 weeks ago

cam-stitt commented 2 weeks ago

Currently the sdk.Null type marshals as {} when using the encoding/json package. This PR will fix that so that it marshals to null as expected.