Skip to main content

validateJsonContent

Summary

Validates JSON content to ensure it’s safe to parse.

Signature

static validateJsonContent(jsonString: string, options?: {
        skipPatternCheck?: boolean;
    }): string;

Parameters

jsonString

Type:string The JSON string to validate

options

Type:
{
        skipPatternCheck?: boolean;
    }
Optional: Yes Validation options

Returns

Type:string Validates JSON content to ensure it’s safe to parse.