megajson icon indicating copy to clipboard operation
megajson copied to clipboard

map support?

Open CasualSuperman opened this issue 11 years ago • 1 comments

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).

CasualSuperman avatar Nov 13 '13 02:11 CasualSuperman

@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...).

benbjohnson avatar Nov 13 '13 02:11 benbjohnson