Giter Site home page Giter Site logo

fractalwrench / json-2-kotlin Goto Github PK

View Code? Open in Web Editor NEW
150.0 6.0 13.0 347 KB

Convert JSON to Kotlin Data Classes

License: MIT License

Kotlin 83.54% HTML 5.48% CSS 9.76% JavaScript 1.21%
kotlin kotlin-library spring-boot json data-class json-2-kotlin json-to-kotlin json-converter json-conversion json-serialization

json-2-kotlin's Introduction

Json2Kotlin

Converts a JSON string into Kotlin data classes.

About

As you've probably guessed by now, this project automatically converts JSON to Kotlin source files. The tool itself is implemented 100% in Kotlin, and makes heavy use of Square's excellent KotlinPoet library.

Read the blog post which covers how this multi-platform tool was written.

View the source to suggest improvements.

Grab the command line tool from the latest release.

Get in touch on Twitter if you have questions, comments, or simply enjoy high-quality cat gifs.

Running

Run ./gradlew bootRun and visit http://localhost:8080

Releasing

Command Line

Run ./gradlew assembleDist, unzip the archive, and navigate to bin.

Then specify the json file, e.g. ./cmdline -input /c/Users/<User>/json2kotlin/bin/test.json

Spring

Deploy the JAR to AWS using ./gradlew bootRepackage

json-2-kotlin's People

Contributors

fractalwrench avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

json-2-kotlin'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.