Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/ldedev/Json2V

Convert a json to a struct in Vlang
https://github.com/ldedev/Json2V

js vlang

Last synced: 19 days ago
JSON representation

Convert a json to a struct in Vlang

Awesome Lists containing this project

README

        

# Json2V

A more complex real json that I got and tested was this one -> [CNPJ brasilapi](https://brasilapi.com.br/api/cnpj/v1/19131243000197)

Converts a json into a structure in Vlang.

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

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



## Start of the project



![screenshot](/assets/img1.png)



## Second stage



![screenshot](/assets/img2.gif)



## End of project



![screenshot](/assets/img3.gif)


# Stack utilizada

**Front-end:** [pico.css](https://picocss.com/), [lodash](https://lodash.com/)

**Icon:** [favicon](https://favicon.io/)

**Code editor:** [ace](https://ace.c9.io/)

**fonts:** [google fonts](https://fonts.googleapis.com)