------------------
9.1.0 (2024-02-29)
------------------
+* Implemented automatic stripping of newline characters when loading JSON objects.
* Upgraded copyright notice to year 2024.
==================
throw new IllegalArgumentException("Invalid 'x': null or empty.");
}
//
+ x = x.replaceAll("\\R", "");
+ //
if ((2 > x.length()) || ('[' != x.charAt(0)) || (']' != x.charAt(x.length() - 1))) {
throw new MInvalidJsonValueException(String.format("Invalid 'x': %s: must begin and end with square brackets.", x));
}
throw new IllegalArgumentException("Invalid 'x': null or empty.");
}
//
+ x = x.replaceAll("\\R", "");
+ //
if ((!"true".equals(x)) && (!"false".equals(x))) {
throw new MInvalidJsonValueException(String.format("Invalid 'x': %s: not a Json boolean.", x));
}
throw new IllegalArgumentException("Invalid 'x': null or empty.");
}
//
+ x = x.replaceAll("\\R", "");
+ //
if (!"null".equals(x)) {
throw new MInvalidJsonValueException(String.format("Invalid 'x': %s: not a Json null.", x));
}
throw new IllegalArgumentException("Invalid 'x': null or empty.");
}
//
+ x = x.replaceAll("\\R", "");
+ //
BigDecimal y = null;
//
try {
throw new IllegalArgumentException("Invalid 'x': null or empty.");
}
//
+ x = x.replaceAll("\\R", "");
+ //
if ((2 > x.length()) || ('{' != x.charAt(0)) || ('}' != x.charAt(x.length() - 1))) {
throw new MInvalidJsonValueException(String.format("Invalid 'x': %s: must begin and end with curly brackets.", x));
}
throw new IllegalArgumentException("Invalid 'x': null or empty.");
}
//
+ x = x.replaceAll("\\R", "");
+ //
if ((2 > x.length()) || ('"' != x.charAt(0)) || ('"' != x.charAt(x.length() - 1))) {
throw new MInvalidJsonValueException(String.format("Invalid 'x': %s: not a Json string.", x));
}