ralfstx/minimal-json

Json.array() should return JsonArray and it returns JsonValue

clasen opened this issue · 2 comments

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,

You are right. Furthermore, other Json#array methods work that way.

Absolutely!