func Valid(data []byte) bool {
	scan := newScanner()
	defer freeScanner(scan)
	return checkValid(data, scan) == nil
}
Valid reports whether data is a valid JSON encoding.
package jsonnet
import (
	"strconv"
	"sync"
)