MCPcopy Create free account
hub / github.com/go-json-experiment/json / TestInvalidUTF8

Function TestInvalidUTF8

v1/diff_test.go:752–782  ·  view source on GitHub ↗

In v1, JSON serialization silently ignored invalid UTF-8 by replacing such bytes with the Unicode replacement character. In v2, JSON serialization reports an error if invalid UTF-8 is encountered. Users of v2 can opt into the v1 behavior by setting [AllowInvalidUTF8]. Silently allowing invalid UTF

(t *testing.T)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers

nothing calls this directly

Calls 3

MarshalFunction · 0.92
UnmarshalFunction · 0.92
JoinMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…