1
0
mirror of https://github.com/json-iterator/go.git synced 2025-12-02 22:48:20 +02:00
Files
json-iterator/misc_tests/jsoniter_array_test.go
Nikhita Raghunath fb5614a4ca Don't marshal empty byte or uint8 slice as null
[]byte or []uint8 are encoded as base-64 encoded string. Per this, non-nil
empty slice should not get marshalled as null, rather as "".

This restores compatibility with the standard library.
2019-06-03 16:19:17 +05:30

6.0 KiB