JSON doesn’t really have data types beyond very simple ones
> JSON doesn’t really have data types beyond very simple ones
What do you think primitive types are supposed to be?
The below type definition (TS) fits the ECMA schema for JSON:
type JSON = string | number | boolean | null | JSON[] | {[name: string]: JSON}
> JSON doesn’t really have data types beyond very simple ones
What do you think primitive types are supposed to be?
The below type definition (TS) fits the ECMA schema for JSON: