Details
-
Bug
-
Status: Closed
-
Trivial
-
Resolution: Fixed
-
3.7
-
None
-
Patch, Important
Description
In ToStringStyle class, which checking if a string is a valid Json array, the boolean check was wrong.
original:
private boolean isJsonArray(final String valueAsString) { return valueAsString.startsWith(getArrayStart()) && valueAsString.startsWith(getArrayEnd()); }
The second expression should be valueAsString.endsWith(getArrayEnd())