Skip to content

isabella232/hasOwnProperty

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

hasOwnProperty Build Status godoc reference

Go's JSON package does not provide a way to distinguish between null keys and keys which do not exist on a structure. This package provides such functionality.

const json = []byte(`{"hello": {"world": true}}`)


ok := hasOwnProperty.Test(json, "hello") // true
ok = hasOwnProperty.Test(json, "hello.world") // true
ok = hasOwnProperty.Test(json, "goodbye") // false

About

JSON property checking for Go

Resources

License

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Go 100.0%