Struct Converter
Sample data in, typed code out.
The 24th tool turns sample data into a ready-to-paste type definition. Drop in JSON, TOML, YAML, or a SQL CREATE TABLE block, and pick an output language — TypeScript, Python, Go, Java, Rust, Swift, or PHP. The tool walks every nested object, infers strings, numbers, booleans, ISO 8601 dates, arrays, and nullable fields, and emits idiomatic field names with serde renames, Swift CodingKeys, or Go struct tags preserving the original keys.
Four input formats
JSON parses via Foundation; TOML supports tables, dotted keys, and arrays of tables; YAML handles block-style mappings and sequences; SQL DDL parses multi-statement CREATE TABLE blocks and maps SQL column types (INT/VARCHAR/DECIMAL/TIMESTAMP/...) to language-native types, respecting NOT NULL.
Seven output languages
TypeScript interface, Python @dataclass, Go struct with JSON tags and aligned columns, Java POJO with getters/setters, Rust struct with #[derive(Serialize, Deserialize)], Swift Codable struct with CodingKeys, and PHP class with typed properties. Closes issue #17.