UNPKG

@mantine/core

Version:

React components library focused on usability, accessibility and developer experience

19 lines (15 loc) 363 B
'use strict'; Object.defineProperty(exports, '__esModule', { value: true }); function validateJson(value) { if (typeof value === "string" && value.trim().length === 0) { return true; } try { JSON.parse(value); return true; } catch (e) { return false; } } exports.validateJson = validateJson; //# sourceMappingURL=validate-json.js.map