Checking JSON Serializability of a Schema in TypeScript

Hi, i have schema X, then is it possible to check if X is json serializable or not? i mean, somehow restrict encoding to always output JSON serializable object? safety on type level and runtime level
Was this page helpful?