megajson icon indicating copy to clipboard operation
megajson copied to clipboard

For unsupported Types, fall back on `encoding/json`?

Open pquerna opened this issue 10 years ago • 2 comments

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 that megajson can't generate more specialized code, for it to fall back on encoding/json, so that code is still functional, even if that specific path isn't fully-megaized.

pquerna avatar Mar 20 '14 14:03 pquerna

@pquerna The megajson encoder/decoder needs a refactor but I've been holding off because the templating is a PITA for doing codegen. I'm going to swap out the templates out for ego templates which should make it a lot easier to support all types.

:+1: for using megaized in your issue. :)

benbjohnson avatar Mar 20 '14 14:03 benbjohnson

I would also love this :+1:

dropwhile avatar Sep 12 '14 01:09 dropwhile