go_polymorphic_json
Demonstration of using polymorphic JSON types with golang. (by karaatanassov)
goblin
convert from a Go AST to JSON (by ReconfigureIO)
go_polymorphic_json | goblin | |
---|---|---|
1 | 1 | |
10 | 41 | |
- | - | |
10.0 | 10.0 | |
over 1 year ago | over 3 years ago | |
Go | Go | |
- | Apache License 2.0 |
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.
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
goblin
Posts with mentions or reviews of goblin.
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
One project goblin, which I tried to use for a while, is quite good and mature, but it misses support of backward conversion from JSON to AST. It tries to reinterpret some structures in AST to (I guess) simplify and make them more human-readable. My personal opinion - it is not good. But the main issue with it is lack of maintenance. It was developed a long time ago for version 1.16 and was not updated since then. However, you can find a fork of it relatively up to date.
What are some alternatives?
When comparing go_polymorphic_json and goblin you can also consider the following projects:
goast-viewer - Golang AST visualizer
go2json - Golang transpiler: Go AST→JSON→Haxe→?
jq - Command-line JSON processor [Moved to: https://github.com/jqlang/jq]
jq - Command-line JSON processor