Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/rudifa/gjson-demo
Learning GJSON and SJSON for json validation and transformation
https://github.com/rudifa/gjson-demo
Last synced: 24 days ago
JSON representation
Learning GJSON and SJSON for json validation and transformation
- Host: GitHub
- URL: https://github.com/rudifa/gjson-demo
- Owner: rudifa
- License: mit
- Created: 2023-05-04T20:29:27.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-05-04T20:33:33.000Z (over 1 year ago)
- Last Synced: 2024-10-06T01:41:24.330Z (about 2 months ago)
- Language: Go
- Size: 6.84 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Learn GJSON and SJSON
## References
GJSON is a Go package that provides a fast and simple way to get values from a json document.
It has features such as one line retrieval, dot notation paths, iteration, and parsing json lines.SJSON is a Go package that provides a very fast and simple way to set a value in a json document.
[gjson api reference](https://pkg.go.dev/github.com/tidwall/gjson)
[gjson repo](https://github.com/tidwall/gjson)
[gjson path syntax](https://github.com/tidwall/gjson/blob/master/SYNTAX.md)
[gjson getting started](https://pkg.go.dev/github.com/tidwall/gjson)
[Dynamic JSON Parsing using empty Interface and without Struct in Go Language](https://irshadhasmat.medium.com/golang-simple-json-parsing-using-empty-interface-and-without-struct-in-go-language-e56d0e69968) - basics, no libraries
[A Complete Guide to JSON in Golang](https://www.sohamkamani.com/golang/json/) - Soham Kamani - plain go
[sjson repo](https://github.com/tidwall/sjson)
[sjson api reference](https://pkg.go.dev/github.com/tidwall/sjson)
[jj repo](https://github.com/tidwall/jj) - the cli tool using gjson and sjson
## Experimental go code for applied json parsing
### gjson
`Xform` a minimal demo of JSON tansform (picking out values from input and repacking into output)
### gojson
Demo of unmarshalling json to a specific struct (static), and to arrays and maps (dynamic)