codegen_json correctly handles unions now :p