Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/ldedev/Json2V
- Owner: Ddiidev
- Created: 2023-05-21T22:58:41.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-12-01T04:40:01.000Z (about 2 months ago)
- Last Synced: 2024-12-24T13:05:03.416Z (28 days ago)
- Topics: js, vlang
- Language: JavaScript
- Homepage: https://Ddiidev.github.io/Json2V/
- Size: 1.77 MB
- Stars: 29
- Watchers: 1
- Forks: 2
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- awesome-v - json2v - Convert a json to a struct in Vlang. (Libraries / Utility)
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)