Skip to content

Latest commit

 

History

54 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Convert a json to a struct in Vlang

Topics

Resources

Stars

32 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages