UNPKG

@mantine/core

Version:

React components library focused on usability, accessibility and developer experience

15 lines (14 loc) 394 B
"use client"; //#region packages/@mantine/core/src/components/JsonInput/validate-json/validate-json.ts function validateJson(value, deserialize) { if (typeof value === "string" && value.trim().length === 0) return true; try { deserialize(value); return true; } catch (e) { return false; } } //#endregion exports.validateJson = validateJson; //# sourceMappingURL=validate-json.cjs.map