Skip to content

sj26/golang-x-encoding-json-valid

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

JSON IsValid

This is a single function, func IsValid([]byte) error, exposing some private functionality in the go standard library encoding/json package. It does a scan over encoded JSON data to make sure it is valid without too many allocations.

The file scanner.go is copied directly from the json package. valid.go adds the method, and valid_test.go contains a simple test.

License

scanner.go retains the BSD license from Go. The rest is also BSD licensed.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages