Open silverwind opened 3 years ago
Plain numbers are valid JSON but they are being rejected. It works with the standard library:
fmt.Println(jsoniter.Valid([]byte("1"))) // false fmt.Println(jsoniter.ConfigCompatibleWithStandardLibrary.Valid([]byte("1"))) // false fmt.Println(json.Valid([]byte("1"))) // true
Plain numbers are valid JSON but they are being rejected. It works with the standard library: