benbjohnson / megajson

A JSON parser generator for high performance encoding and decoding in Go.
MIT License
466 stars 36 forks source link

map support? #5

Open CasualSuperman opened 10 years ago

CasualSuperman commented 10 years ago

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 (or at least it's not generating a parser for it).

benbjohnson commented 10 years ago

@CasualSuperman Better support for nested types is next on my list of things to do. Currently megajson has fairly simple type checking but with some fixes to the generator I think I can support most types (e.g. primitives, structs, pointers, slices, slices of pointers, slices of pointers to pointers, etc...).