JSON To Crystal
Generate Crystal JSON mappings from JSON files. Outputs to STDOUT.
Usage
npx jsontocr test.json > types.cr
Examples
Take this JSON for example:
Generated output will look like this:
require "json" class Root JSON.mapping( userId: {type: Float64, nilable: true}, id: {type: Float64, nilable: true}, title: {type: String, nilable: true}, body: {type: String, nilable: true}, )end