"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