quicktype
  • GitHub
  • Blog
  • Support
  • Open App
Mark

Mark

8 posts •
how-to

Transformed String Types: How quicktype Converts JSON String Values to Stronger Types

JSON often string-encodes complex data types, such as date-times. When coding, we would like to use our programming language’s native types, not strings. quicktype lets us do that. In this blog post, I'll show how straightforward it was to add two new transformed string types: UUIDs and booleans.

Mark Mark
how-to

Customizing quicktype

In this post I’ll show you how to customize quicktype’s output. Suppose we’re building a mobile game in C# that the player can pick up on their Android phone in

Mark Mark
how-to

Swift Types from C#

Do you have a C# codebase with model classes for a JSON API? Did you ever have to use that API with another programming language, wishing there was a way to automatically convert your C# model to that other language? With quicktype and Json.NET, there is!

Mark Mark
little-big-details

Little Big Detail #3: Detecting Maps

In this post we show how quicktype uses Markov chains to do decide which JSON represents a class and which JSON represents a map, so it can generate the ideal code for any JSON.

Mark Mark
little-big-details

Little Big Detail #2: Contextual Class Names

Little Big Details are the subtle details that quicktype takes care of when turning your data into beautiful, readable code. This Little Big Detail is about how quicktype uses the names of outer

Mark Mark
little-big-details

Little Big Detail #1: Perfect Property Names

This first Little Big Detail is part of how quicktype turns JSON property names into nice property names in your preferred target language.

Mark Mark
graphql

Typesafe GraphQL queries with quicktype

quicktype supports GraphQL now. Here we'll go over an example showing how to make type-safe GraphQL queries with quicktype.

Mark Mark
internals

quicktype under the hood

Learn about the three stages quicktype uses to turn sample JSON data into source code: Read, Simplify, and Render. Also learn about quicktype's core data structures.

Mark Mark
quicktype © 2023
Latest Posts Twitter Ghost