json-2-kotlin - Convert JSON to Kotlin Data Classes

  •        12

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.

http://json2kotlin.co.uk
https://github.com/fractalwrench/json-2-kotlin

Tags
Implementation
License
Platform

   




Related Projects

klaxon - A JSON parser for Kotlin

  •    Kotlin

Klaxon is a lightweight library to parse JSON in Kotlin.You can also access the JSON content as a file, or any other resource you can get an InputStream from.

kotlinx.serialization - Kotlin cross-platform / multi-format serialization

  •    Kotlin

Kotlin serialization support consists of three parts: a gradle compiler plugin, which produces visitor/serializer code for objects, an IntelliJ plugin and a runtime library. You can open example projects for JVM or JS to get started playing with it.

Kotson - Kotlin bindings for JSON manipulation via Gson

  •    Kotlin

Kotson enables you to parse and write JSON with Google's Gson using a conciser and easier syntax. Kotson is a set of extension functions, meaning that it adds utility functions and syntactic sugars to Gson in Kotlin. It does not add new features to Gson nor does it creates new types. It is therefore usable on any Gson object, whether created from java or kotlin in source or library.

Javalin - A Simple REST API Library for Java / Kotlin

  •    Java

Javalin is a very lightweight web framework for Kotlin and Java, inspired by Sparkjava and koa.js. Javalin is written in Kotlin with a few functional interfaces written in Java. This was necessary to provide an enjoyable and near identical experience for both Kotlin and Java developers.


kotlin-argparser - Easy to use and concise yet powerful and robust command line argument parsing for Kotlin

  •    Kotlin

This is a library for parsing command-line arguments. It can parse both options and positional arguments. It aims to be easy to use and concise yet powerful and robust. An instance of MyArgs will represent the set of parsed arguments. Each option and positional argument is declared as a property that delegates through a delegate factory method on an instance of ArgParser.

countries - An example Android app using Retrofit, Realm, Parceler, Dagger and the MVVM pattern with the data binding lib

  •    Kotlin

A sample Android app written in Kotlin, which lists all countries with some additional information (currencies, languages, …). The app uses the MVVM pattern with the Android data binding lib. Countries can be bookmarked and are then stored locally with Realm. Retrofit is used to fetch the country information from the free REST Countries service. For JSON parsing, custom Gson TypeAdapters are used. PaperParcel is used to make the Country objects Parcelable. Also, Dagger 2 is used for dependency injection. This project can also be used as a template for new apps. Check out the template branch for a cleaned up version of this project.

dsl-json - High performance JVM JSON library

  •    Java

Fastest JVM (Java/Android/Scala/Kotlin) JSON library with advanced compile-time databinding support. Compatible with DSL Platform. Java JSON library designed for performance. Built for invasive software composition with DSL Platform compiler.

jq - Command-line JSON processor

  •    C

jq is a lightweight and flexible command-line JSON processor. jq is like sed for JSON data - you can use it to slice and filter and map and transform structured data with the same ease that sed, awk, grep and friends let you play with text.

remarshal - Convert between TOML, YAML and JSON

  •    Python

Convert between TOML, YAML and JSON. When installed provides the command line commands toml2yaml, toml2json, yaml2toml, yaml2json. json2toml and json2yaml for format conversion as well as toml2toml, yaml2yaml and json2json for reformatting and error detection. You will need Python 2.7 or Python 3.3 or later.

quicktype - Generate types and converters from JSON, Schema, and GraphQL

  •    TypeScript

quicktype generates strongly-typed models and serializers from JSON, JSON Schema, and GraphQL queries, making it a breeze to work with JSON type-safely in any programming language.

spring-boot-kotlin-demo - Spring Boot Kotlin project with a REST Webservice and Spring Data

  •    Kotlin

This is the source code for the a sample Spring Boot application developed with Kotlin and Spring Data JPA. See also https://github.com/spring-guides/tut-spring-boot-kotlin for a more complete Spring Boot + Kotlin + JPA example.

SwiftKotlin - A tool to convert Swift code to Kotlin.

  •    Swift

A tool to convert Swift code to Kotlin in a very easy and quick way. SwiftKotlin is a framework, a command line tool and a Mac application for translating Swift code into Kotlin.

json2swift - A macOS command line tool that generates excellent Swift data models based on JSON data

  •    Swift

A macOS command line tool that generates excellent Swift data models based on JSON data. It takes care of the boring error-prone grunt work of consuming JSON data in your app.

json - A "json" command for massaging JSON on your Unix command line.

  •    Javascript

A "json" command for massaging JSON on your Unix command line.

underscore-cli - Command-line utility-belt for hacking JSON and Javascript.

  •    Javascript

JSON is an excellent data interchange format and rapidly becoming the preferred format for Web APIs. Thusfar, most of the tools to process it are very limited. Yet, when working in JavaScript, JSON is fluid and natural. Or it can form the backbone of a rich, full-powered JavaScript command-line, inspired by "perl -pe", and doing for structured data what sed, awk, and grep do for text.

Kotlin-Realm-Extensions - Kotlin extensions to simplify Realm API.

  •    Kotlin

Kotlin extensions to simplify Realm API. Simplify your code to its minimum expression with this set of Kotlin extensions for Realm. Forget all boilerplate related with Realm API and perform database operations in one line of code with this lightweight library. Full test coverage.

json - A "json" command for massaging JSON on your Unix command line.

  •    Javascript

See http://trentm.com/json for full docs and examples as a man page.Follow @trentmick for updates to json.

jl - Functional sed for JSON

  •    Haskell

jl ("JSON lambda") is a tiny functional language for querying and manipulating JSON. Binary releases for Linux and OS X are available here.