Skip to content

triarius/json2type

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

json2type

A CLI program to covert a JSON object to a type. Currently only Go structs are supported.

Installation

cargo install --git https://github.com/triarius/json2type

Usage

Usage: json2type [OPTIONS] --name <NAME>

Options:
  -n, --name <NAME>      Name for the struct
  -i, --input <INPUT>    File to read JSON, default: stdin
  -o, --output <OUTPUT>  File to output Go, default: stdout
  -h, --help             Print help
  -V, --version          Print version

To-do

Languages

  • Go
  • Rust
  • Typescript

Features

  • Order preserving
  • Format output
  • Non-objects as type aliases

About

Convert JSON to a type definition

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages