Json2VStruct
Convert JSON to a struct in V
Install / Use
/learn @Ddiidev/Json2VStructREADME
Convert JSON to a struct in V.
A CLI to build a struct/entity from a data model like JSON and TOML(for now).
There is a web version(Json2V) built in Pure Js that can transform just json to struct.
Roadmap
- [X] CLI
- [X] Parser JSON
- [X] Parser TOML
- [ ] Parser YAML
- [ ] Parser XML
- [ ] Web page to be more practical to use
Demonstração

Documentation
Stdin on linux
cat my.json | obj2V
//or
cat my.toml | obj2V -t toml
Stdin on windows
type my.toml | obj2V -t toml
Args
obj2V -t toml teste = 3
<br/>
Usage: obj2V [flags] [commands] [args/stdin]
Translate a json and toml to a struct vlang
Flags:
-ku -keyword_with_underscore Add an underscore to the end of reserved words, otherwi
se add an @ to the beginning
-oe -omit_empty omit empty fields
-sa -struct-anon Create anonymous sub-structs
-t -type Output type (json, toml)
-version Prints version information.
Commands:
help Help about the tool
version Prints version information.
Licença
Related Skills
node-connect
346.8kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
107.6kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
346.8kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
346.8kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
