You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is a kind of deliberate design decision because we do not want to add a number parsing/validation strategy during JsonPrimitive parsing (see reasoning here: #1298 (comment)). E.g. "[3.0, 3e25, 3]" is a valid Json. asdf of course is not a valid number, but to determine that, we need to embed some kind of strategy anyway. On a contrary, we do not want to add a strategy but rather ask user to provide it explicitly with conversions like JsonPrimitive.int, JsonPrimitive.boolean, etc
Describe the bug
Absence of
"
is ignored on Default jsonTo Reproduce
Json.Default.parseToJsonElement("[asdf, dsaf, dsaf]").jsonArray.size
Expected behavior
Exception
Environment
The text was updated successfully, but these errors were encountered: