Function: parseJsonWithSchema()
parseJsonWithSchema<Defined in: sanitize.ts:340 Safely parses JSON with Effect Schema validation and prototype pollution protection.A>(jsonString,schema):Option<A>
Type Parameters
A
A
The expected schema type
Parameters
jsonString
string
The JSON string to parse.
schema
SyncSchema<A>
Effect Schema to validate against.
Returns
Option<A>
Option containing the parsed and validated object.