Json.array() should return JsonArray and it returns JsonValue
clasen opened this issue · 2 comments
clasen commented
Json.array() should return JsonArray and it returns JsonValue.
I think that this is an issue.
this example:
JsonArray user = Json.array().add("Bob").add(42);
// -> ["Bob", 42]
don't work without casting
Thanks,
bernardosulzbach commented
You are right. Furthermore, other Json#array methods work that way.
ralfstx commented
Absolutely!