Coder Social home page Coder Social logo

json2vstruct's Introduction

Convert JSON to a struct in V.

A CLI to build a struct/entity from a data model like JSON and TOML(for now).

There is a web version(Json2V) built in Pure Js that can transform just json to struct.

Roadmap

  • CLI
  • Parser JSON
  • Parser TOML
  • Parser YAML
  • Parser XML
  • Web page to be more practical to use

Demonstração

gif1

Documentation

Stdin on linux

cat my.json | obj2V
//or
cat my.toml | obj2V -t toml

Stdin on windows

type my.toml | obj2V -t toml

Args

obj2V -t toml teste = 3

Usage: obj2V [flags] [commands] [args/stdin]

Translate a json and toml to a struct vlang

Flags:
  -ku  -keyword_with_underscore  Add an underscore to the end of reserved words, otherwi
                                 se add an @ to the beginning
  -oe  -omit_empty               omit empty fields
  -sa  -struct-anon              Create anonymous sub-structs
  -t   -type                     Output type (json, toml)
       -version                  Prints version information.

Commands:
  help                           Help about the tool
  version                        Prints version information.

Licença

MIT

json2vstruct's People

Contributors

ddiidev avatar

Stargazers

 avatar ylluminate avatar

json2vstruct's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.