API reference › @evolu/common › Type › Json
type Json = string & Brand<"Json">;
Defined in: packages/common/src/Type.ts:4246
JSON-string Type.
Example
const result = Json.from('{"key":"value"}'); // ok
const error = Json.from("invalid json"); // err