UNPKG

@mantine/core

Version:

React components library focused on usability, accessibility and developer experience

15 lines (14 loc) 382 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 export { validateJson }; //# sourceMappingURL=validate-json.mjs.map