mirror of
https://gitee.com/johng/gf.git
synced 2024-12-02 20:28:17 +08:00
embarrassing jsoniter of another incompatibility with stdlib json
This commit is contained in:
parent
b2aa59d893
commit
abe9b54112
@ -13,7 +13,7 @@ import (
|
||||
"io"
|
||||
)
|
||||
|
||||
// ConfigCompatibleWithStandardLibrary tries to be 90% compatible
|
||||
// ConfigCompatibleWithStandardLibrary tries to be 80% compatible
|
||||
// with standard library behavior.
|
||||
var json = jsoniter.ConfigCompatibleWithStandardLibrary
|
||||
|
||||
@ -65,5 +65,5 @@ func NewDecoder(reader io.Reader) *jsoniter.Decoder {
|
||||
|
||||
// Valid reports whether data is a valid JSON encoding.
|
||||
func Valid(data []byte) bool {
|
||||
return json.Valid(data)
|
||||
return json2.Valid(data)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user