Skip to content

Commit

Permalink
codec: json: document behaviour differences vs encoding/json package
Browse files Browse the repository at this point in the history
- case sensitive struct name matching
- etc

Fixes #400
  • Loading branch information
ugorji committed Nov 28, 2023
1 parent 48ba79b commit 77eda90
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions codec/json.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 77eda90

Please sign in to comment.