Mike Schwörer f6121a6961
All checks were successful
Build Docker and Deploy / Run goext test-suite (push) Successful in 2m50s
v0.0.471 Revert "v0.0.470 Add GoextJsonMarshaller interface to call when marshalling json via gojson"
2024-06-11 19:39:43 +02:00
..
2023-10-05 10:57:34 +02:00
2023-12-28 01:36:21 +01:00
2023-04-20 14:34:57 +02:00
2023-04-20 14:35:55 +02:00

JSON serializer which serializes nil-Arrays as [] and nil-maps als {}.

Idea from: https://github.com/homelight/json

Forked from 547e8e22fe/src/encoding/json ( tag go1.20.2 )

Added:

  • MarshalSafeCollections() method
  • Encoder.nilSafeSlices and Encoder.nilSafeMaps fields