Skip to main content

Documentation Index

Fetch the complete documentation index at: https://mint-tsdocs.saulo.engineer/llms.txt

Use this file to discover all available pages before exploring further.

parseJsonSafe

Summary

Safely parses JSON with prototype pollution protection. Filters out dangerous keys like proto, constructor, and prototype.

Signature

static parseJsonSafe<T = any>(jsonString: string): T;

Parameters

jsonString

Type:string The JSON string to parse

Returns

Type:T Safely parses JSON with prototype pollution protection. Filters out dangerous keys like proto, constructor, and prototype.

Examples

Example 1