ldedev/Json2V

Convert a json to a struct in Vlang

32

stars

54

commits

JavaScript

primary language

Aug 23, 2026

updated

Ddiidev.github.io/Json2V/
js
vlang

README

Json2V

Turn a JSON payload into ready-to-use V (vlang) structs: paste JSON on the left, get the struct code on the right.

Try it live

Nested objects become their own structs and arrays with mixed types become sum types. A row of toggles controls the generated style:

  • @[omitempty] tag
  • All public fields/structs
  • Reserved words escaped with @
  • Anonymous structs instead of helper structs
  • Reuse identical struct shapes

Demo

screenshot

screenshot

screenshot


Stack utilizada

Front-end: pico.css, lodash

Code editor: ace

Fonts: google fonts

Contributors

Ddiidev

54 commits

ldedev/Json2V

Convert a json to a struct in Vlang

32

stars

54

commits

JavaScript

primary language

Aug 23, 2026

updated

Ddiidev.github.io/Json2V/
js
vlang

README

Json2V

Turn a JSON payload into ready-to-use V (vlang) structs: paste JSON on the left, get the struct code on the right.

Try it live

Nested objects become their own structs and arrays with mixed types become sum types. A row of toggles controls the generated style:

  • @[omitempty] tag
  • All public fields/structs
  • Reserved words escaped with @
  • Anonymous structs instead of helper structs
  • Reuse identical struct shapes

Demo

screenshot

screenshot

screenshot


Stack utilizada

Front-end: pico.css, lodash

Code editor: ace

Fonts: google fonts

Contributors

Ddiidev

54 commits

Languages

JavaScript

69.0%

HTML

24.0%

CSS

6.9%