Options for JSON validation.

interface IsJSONOptions {
    allowPrimitives?: boolean;
}

Properties

Properties

allowPrimitives?: boolean

Accepts primitive JSON values (true, false, null) if true. Defaults to false.