- Re-use Typescript interfaces for JSON schemas.
- Allows comments in JSON
- no need for key value to be a string
- Can use variables for JSON
- Import all configs into a singular config
// test.interface.ts
export interface TsonTest {
title: string;
position: number;
type: string;
}
import ( TsonTest } from 'test.interface';
// test.tson or test.tyson (.tyson for all you jokesters out there)
{: TsonTest
title: "sample title",
position: 0,
type: "sample type",
}
compiles to
/// test.json
{
"title": "sample title",
"position": 0,
"type": "sample type"
}