An excellent tool for converting json files to structs or classes in any programming language.


convert-json-cli


Table of Contents
  1. About The Project Supported Languages
  2. Getting Started
  3. Set Up Your Own
  4. Roadmap
  5. Contributing
  6. License
  7. Contact

About The Project

screenshot-1

Convert-JSON-CLI is an excellent tool for converting json files to structs or classes in any programming language.

It currently only supports command line interface, but a web version will be developed in the near future!

(back to top)

Supported Languages


Getting Started

Usage

convjson [OPTIONS] [INPUT_FILE_PATH] [TARGET_LANGUAGE]

Parameters

Parameter Necessity Description Default Value
INPUT_FILE_PATH Required Path to your JSON file. None
TARGET_LANGUAGE Required Target language. Currently supports:
[go] [php] [python] [c] [swift] [csharp] [protobuf] [rust] [scala] [kotlin] [cpp] [dart] [java] [typescript]
None
-o string Optional Background image. Use url encode tool like https://www.urlencoder.org/. .\[INPUT_FILE_DIR].[TARGET_LANGUAGE_EXTENSION]

Example

Windows

.\convjson.exe -o .\out\test.dart .\in\test.json dart

Linux

.\convjson -o .\out\test.dart .\in\test.json dart

And boom!

screenshot-2

(back to top)

Set Up Your Own

These are some instructions on setting up your project locally, just follow these simple steps.

Prerequisites

Installation

  1. Clone the repo.

    git clone https://github.com/ez4o/convert-json-cli.git
    cd convert-json-cli
  2. Install Go modules.

    go get -u

    Go module acts really different between versions, if you have any problem installing Go modules, please try:

    1. Upgrade Go version to 1.17.x
    2. go mod tidy -compat="1.17"
    3. go get -u

Generate Executable File

  1. Use release command, and it will generate a executable file in root directory.

    make release-windows

    or

    make release-linux

(back to top)

Roadmap

  • More Target Languages...

See the open issues for a full list of proposed features (and known issues).

(back to top)

Contributing

Contributions are what make the open source community such an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated.

If you have a suggestion that would make this better, please fork the repo and create a pull request. You can also simply open an issue with the tag "enhancement". Don't forget to give the project a star! Thanks again!

  1. Fork the Project
  2. Create your Feature Branch (git checkout -b feat/amazing-feature)
  3. Commit your Changes with Conventional Commits
  4. Push to the Branch (git push origin feat/amazing-feature)
  5. Open a Pull Request

(back to top)

License

Distributed under the MIT License. See LICENSE for more information.

(back to top)

Contact

Author

Project Link

(back to top)

Owner
ez4o
Create awesome tools that are easy for all user to use.
ez4o
Similar Resources

go-shellcommand is the package providing the function System like the one of the programming language C.

go-shellcommand go-shellcommand is the package providing the function System like the one of the programming language C. process, err := shellcommand.

Oct 17, 2021

Go-ticket-booking-app - Simple CLI application which books tickets for a Go conference made to learn the fundamentals of Go programming language.

go-ticket-booking-app Simple CLI application which books ticket for a Go conference made to learn the fundamentals of Go programming language. Gorouti

Jan 2, 2022

Json-match - Command line util for matching values in a JSON input

json-match Match JSON input by specifying key and value json-match -json '{\"p

Jan 12, 2022

a work time management CLI tool for any platform

a work time management CLI tool for any platform

english |日本語 jobgosh | job management tool made with golang for shell a multi-platform work time management CLI tool to track and improve your day to

May 16, 2022

A CLI tool to find the absolute path of any folder in your local file system.

Table of Contents What is this? How to use this Examples of usage How to compile it What am I looking at It's a CLI tool that I made for finding the a

Jan 15, 2022

🔄 A command-line utility to export Protocol Buffers (proto) files to YAML, and JSON

proto2yaml 🔄 A command-line utility to export Protocol Buffers (proto) files to YAML, and JSON. Currently supported exports are for: Packages Service

Nov 10, 2022

A go language implementation of a CLI, based on input directory files

A go language implementation of a CLI, based on input directory files, using tree output of all file names, based on input database links, dynamic reading of database table information, based on input swagger files to automate the generation of the RESTFUL API.

Aug 23, 2022

lls is lightweight ls. Using lls, you can get a list of files in a directory that contains a large number of files.

lls lls is lightweight ls. Using lls, you can get a list of files in a directory that contains a large number of files. How? You allocate a buffer for

Dec 29, 2022

Watcher - A simple command line app to watch files in a directory for changes and run a command when files change!

Watcher - Develop your programs easily Watcher watches all the files present in the directory it is run from of the directory that is specified while

Mar 27, 2022
A command line tool for quickly converting Unix timestamps to human readable form.

stamp A command line tool to quickly format a Unix timestamp in a human-readable form. Installation Go is required to build this software. To just bui

Oct 30, 2021
A Go package for converting RGB and other color formats/colorspaces into DMC thread colors (DMC color name and floss number)

go-c2dmc A Go package for converting RGB and other color formats/colorspaces into DMC thread colors (DMC color name and floss number). Implemented as

Jul 25, 2022
Cli tool to translate text from any language into german

GERMAN A cli tool for converting text into German. Build Locally $> go build $> go install Dependencies To execute successfully, a free tier DEEPL API

Jan 24, 2022
Creating a simple CLI tool in the Go Programming Language for personal learning and fun

Creating a simple CLI tool in the Go Programming Language for personal learning and fun Open to feedback :) Build docker dev environment docker build

Dec 12, 2021
tinygo-used-files is a CLI tool that lists only the files to be built as specified by buildtag.

tinygo-used-files is a CLI tool that lists only the files to be built as specified by buildtag.

Feb 6, 2022
Related is a simple cli utility tool to create files or a group of files.

Related - Create files based on individual definitions or groups Related helps with common file-creation-based tasks. You can predefine single types a

Apr 16, 2022
Tag-based environment configuration for structs

env Tag-based environment configuration for structs. Installation $ go get -u github.com/codingconcepts/env Usage package main import ( "fmt" "log"

Dec 23, 2022
Integrated console application library, using Go structs as commands, with menus, completions, hints, history, Vim mode, $EDITOR usage, and more ...
Integrated console application library, using Go structs as commands, with menus, completions, hints, history, Vim mode, $EDITOR usage, and more ...

Gonsole - Integrated Console Application library This package rests on a readline console library, (giving advanced completion, hint, input and histor

Nov 20, 2022
Envopts - Provides a code generator for turning env structs into functional options

envopts Provides a code generator to turn structs annotated for the popular env

Jan 10, 2022
Optinator - Idiomatic way to fill structs with options logic

optinator Go packages are generally start with a main struct and the package ini

Mar 15, 2022