The below type definition (TS) fits the ECMA schema for JSON:
type JSON =
string |
number |
boolean |
null |
JSON[] |
{[name: string]: JSON}You didn't answered my question.
I'm not the person you asked.
Re:Most RESTful APIs Aren't RESTful
by SJC_Hacker on Friday July 11, 2025 @10:24AM
(#44532503)
I guess my point was something like an ISO 8601 date would be beyond the scope of a built in data type given JSONs philosophy of a minimal spec. It’s up to the end user to define types like that.
What do you think primitive types are supposed to be?