UNPKG

@mantine/core

Version:

React components library focused on usability, accessibility and developer experience

16 lines (14 loc) 301 B
'use client'; function validateJson(value, deserialize) { if (typeof value === "string" && value.trim().length === 0) { return true; } try { deserialize(value); return true; } catch (e) { return false; } } export { validateJson }; //# sourceMappingURL=validate-json.mjs.map