megajson
megajson copied to clipboard
A JSON parser generator for high performance encoding and decoding in Go.
Given that this repo is unmaintained, I propose it be archived to give a clearer signal that it is not recommended for use.
Would allow for a variety of interesting use cases, notably decoding fixed format message envelopes with megajson while continuing to decode the message body with encoding/json.
I see that it’s been mentioned in the golang-nuts group, but it’d be great to have MarshalJSON/UnmarshalJSON support, so existing code can use megajson transparently. (Didn’t see an existing issue,...
Right now its hard to use megajson, because for types it doesn't understand, it just leaves an empty space in the generate code :8ball: I'd vote for in any case...
The only way to have a nullable primitive type in Go is to declare it as a pointer; however, a field like *int makes megajson think it's a nested struct...
This is question rather than a bug - I was wondering if there is any standard way to build the code generation into the build phase of your project, other...
I'd like to see support for maps. I'm trying to parse some third-party json that uses essentially a map[string]struct{...} as the root, so I'm unable to use megajson for it...
Running megajson on structs which contain a []string generates code that requires a NewstringJSONScanDecoder, but that's not defined anywhere, so the code fails to compile.