From 77eda90ca6f48cf9b320f292b2e0128d47015d8e Mon Sep 17 00:00:00 2001 From: Ugorji Nwoke Date: Tue, 28 Nov 2023 05:09:00 -0500 Subject: [PATCH] codec: json: document behaviour differences vs encoding/json package - case sensitive struct name matching - etc Fixes #400 --- codec/json.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/codec/json.go b/codec/json.go index f7d2343e..569b0cc9 100644 --- a/codec/json.go +++ b/codec/json.go @@ -1301,6 +1301,9 @@ func (d *jsonDecDriver) DecodeNaked() { // Note also that the float values for NaN, +Inf or -Inf are encoded as null, // as suggested by NOTE 4 of the ECMA-262 ECMAScript Language Specification 5.1 edition. // see http://www.ecma-international.org/publications/files/ECMA-ST/Ecma-262.pdf . +// +// Note the following behaviour differences vs std-library encoding/json package: +// - struct field names matched in case-sensitive manner type JsonHandle struct { textEncodingType BasicHandle