go/src/encoding/json
andig 1d400cdfc9 encoding/json: use reflect.Value.IsZero
IsZero does the same thing, using this rather than writing it again.

Follow-up to https://github.com/golang/go/pull/63519

Change-Id: I93768874052935dd7cb58804f22748091bcc3ef7
GitHub-Last-Rev: dfbc6ed635
GitHub-Pull-Request: golang/go#63540
Reviewed-on: https://go-review.googlesource.com/c/go/+/535415
Auto-Submit: Ian Lance Taylor <iant@google.com>
Reviewed-by: Carlos Amedee <carlos@golang.org>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Joseph Tsai <joetsai@digital-static.net>
Reviewed-by: Ian Lance Taylor <iant@google.com>
2023-10-18 20:00:40 +00:00
..
testdata
bench_test.go encoding/json: modernize tests 2023-08-25 16:00:37 +00:00
decode.go encoding: modernize Go documentation 2023-09-08 19:04:28 +00:00
decode_test.go encoding/json: modernize tests 2023-08-25 16:00:37 +00:00
encode.go encoding/json: use reflect.Value.IsZero 2023-10-18 20:00:40 +00:00
encode_test.go encoding/json: fix appendCompact escaping 2023-10-06 20:19:31 +00:00
example_marshaling_test.go
example_test.go all: gofmt -w -r 'interface{} -> any' src 2021-12-13 18:45:54 +00:00
example_text_marshaling_test.go
fold.go encoding/json: simplify folded name logic 2023-02-27 17:37:27 +00:00
fold_test.go encoding/json: simplify folded name logic 2023-02-27 17:37:27 +00:00
fuzz_test.go all: add a handful of fuzz targets 2022-01-13 18:06:33 +00:00
indent.go encoding/json: fix appendCompact escaping 2023-10-06 20:19:31 +00:00
number_test.go encoding/json: move some misplaced benchmark tests to bench_test.go 2022-08-24 05:40:28 +00:00
scanner.go encoding: modernize Go documentation 2023-09-08 19:04:28 +00:00
scanner_test.go encoding/json: modernize tests 2023-08-25 16:00:37 +00:00
stream.go encoding: modernize Go documentation 2023-09-08 19:04:28 +00:00
stream_test.go encoding/json: modernize tests 2023-08-25 16:00:37 +00:00
tables.go
tagkey_test.go encoding/json: modernize tests 2023-08-25 16:00:37 +00:00
tags.go all: use bytes.Cut, strings.Cut 2021-10-06 15:53:04 +00:00
tags_test.go encoding/json: modernize tests 2023-08-25 16:00:37 +00:00