ldedev / Json2V

Convert a json to a struct in Vlang

Home Page:https://ldedev.github.io/Json2V/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

Convert a json to a struct in Vlang

https://ldedev.github.io/Json2V/


Languages

Language:JavaScript 67.4%Language:HTML 23.6%Language:CSS 9.0%