You could consider using XML instead of JSON. XML can carry type information from a XML schema. There are several tools that produce code from XML schemas. That way, it would be easy to manipulate the AST.
> > -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.