forked from mirror/gjson
uncomment function
This commit is contained in:
parent
c2e370e1b3
commit
aff9dcea3c
10
gjson.go
10
gjson.go
|
@ -2050,10 +2050,12 @@ func validnull(data []byte, i int) (outi int, ok bool) {
|
||||||
// return errors.New("invalid json")
|
// return errors.New("invalid json")
|
||||||
// }
|
// }
|
||||||
// value := gjson.Get(json, "name.last")
|
// value := gjson.Get(json, "name.last")
|
||||||
// func Valid(json string) bool {
|
//
|
||||||
// _, ok := validpayload([]byte(json), 0)
|
func Valid(json string) bool {
|
||||||
// return ok
|
_, ok := validpayload([]byte(json), 0)
|
||||||
// }
|
return ok
|
||||||
|
}
|
||||||
|
|
||||||
func parseUint(s string) (n uint64, ok bool) {
|
func parseUint(s string) (n uint64, ok bool) {
|
||||||
var i int
|
var i int
|
||||||
if i == len(s) {
|
if i == len(s) {
|
||||||
|
|
Loading…
Reference in New Issue