Closed hcoles closed 7 years ago
The example shown in the readme of creating an array does not compile
JsonArray user = Json.array().add("Bob").add(42);
The return type of Json.array() is JsonValue rather than JsonArray so the add method is not available without casting.
Json.array()
JsonValue
JsonArray
@hcoles fixed on master here isn't it?
Ah, so it is.
When is a release expected?
The example shown in the readme of creating an array does not compile
JsonArray user = Json.array().add("Bob").add(42);
The return type of
Json.array()
isJsonValue
rather thanJsonArray
so the add method is not available without casting.