SkillAgentSearch skills...

Json2VStruct

Convert JSON to a struct in V

Install / Use

/learn @Ddiidev/Json2VStruct
About this skill

Quality Score

0/100

Supported Platforms

Universal

README

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

gif1

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

MIT

Related Skills

View on GitHub
GitHub Stars5
CategoryDevelopment
Updated1mo ago
Forks0

Languages

V

Security Score

70/100

Audited on Feb 11, 2026

No findings