JSON to Thrift IDL

How to use

Paste valid JSON into the input box to generate a Thrift struct. Review inferred types before using the IDL.

From JSON samples to Thrift structs

This tool infers field types from your sample. Review optional fields, numeric ranges and field IDs before using the result in a service contract.

Thrift uses an interface definition language to generate code for multiple languages. The generated struct is a starting point, not a complete RPC service definition.

Example input

{"a":1}
Apache Thrift IDL reference

Feedback