Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

unjson

Get JSON values just like in node, without structs, just path with dot notation + brackets

Uses GJson internally. Wraps a very limited subset of it to support bracket indexing.

example

data := unjson.LoadFile("lighthouse.json")
v := unjson.Get(data, "audits.screenshot-thumbnails.details.items[3].timing")

benchmarks

Benchmark_LargeFile_unjson-12    	    1236	    818774 ns/op	    4224 B/op	      58 allocs/op
Benchmark_LargeFile_GJson-12     	    1377	    814089 ns/op	    4224 B/op	      58 allocs/op
Benchmark_SmallFile_unjson-12    	  537495	      2141 ns/op	      40 B/op	       3 allocs/op
Benchmark_SmallFile_GJson-12     	  600687	      2054 ns/op	      40 B/op	       3 allocs/op

About

Get JSON values just like in node, without structs, just path

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages