const std = @import("std"); pub const json = struct { pub const JsonValue = union(enum) { number: f64, boolean: bool, // ... }; }; pub fn main() void { std.debug.print("{s}\n", .{@typeName(json.JsonValue)}); } // exe=succeed