/Json2V

Convert a json to a struct in Vlang

Primary LanguageJavaScript

Json2V

A more complex real json that I got and tested was this one -> CNPJ brasilapi

Converts a json into a structure in Vlang.

The generated code can have sums of types, structs and Any{}(empty)

  • Key and value simple.
  • SumTypes for array with multiple types.
  • New structures for each object key.
  • Reserved word with _ or @.
  • Omitempty.
  • Structs anonymous.
  • Property name replacement.



Start of the project



screenshot



Second stage



screenshot



End of project



screenshot


Stack utilizada

Front-end: pico.css, lodash

Icon: favicon

Code editor: ace

fonts: google fonts