Ensures the string is valid JSON.
static String? Function(String?) json({ String errorMessage = 'Please enter valid JSON', }) { return _build(errorMessage, (v) => v.isJson); }