pjson
Helps to easily JSON marshal / unmarshal tagged unions in go (by byrnedo)
go_polymorphic_json
Demonstration of using polymorphic JSON types with golang. (by karaatanassov)
pjson | go_polymorphic_json | |
---|---|---|
2 | 1 | |
9 | 10 | |
- | - | |
4.4 | 10.0 | |
about 1 year ago | over 1 year ago | |
Go | Go | |
MIT License | - |
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
pjson
Posts with mentions or reviews of pjson.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2023-04-06.
-
Converting an interface{} to a struct
This github project from the stackoverflow thread is very promising: https://github.com/byrnedo/pjson
- My attempt at trying to make tagged unions in JSON as easy as possible to deal with
go_polymorphic_json
Posts with mentions or reviews of go_polymorphic_json.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2022-09-05.
-
Analyzing AST in Go with JSON tools
Keep polymorphism in JSON structure. If some field references an expression then a particular type will be discriminated from the object type name stored in a separate field NodeType. It is tricky to achieve so if you want something like this for other tasks I would recommend checking out this example https://github.com/karaatanassov/go_polymorphic_json
What are some alternatives?
When comparing pjson and go_polymorphic_json you can also consider the following projects:
pie - 🍕 Enjoy a slice! A utility library for dealing with slices and maps that focuses on type safety and performance.
goast-viewer - Golang AST visualizer
null - Go null and undefined aware type wrapper
go2json - Golang transpiler: Go AST→JSON→Haxe→?
lo - đź’Ą A Lodash-style Go library based on Go 1.18+ Generics (map, filter, contains, find...)
jq - Command-line JSON processor
kokizzu-benchmark - Benchmark sources in kokizzu.blogspot.com
orm - A lightweight yet powerful, fast, customizable, type-safe object-relational mapper for the Go programming language.