ralfstx / minimal-json

A fast and small JSON parser and writer for Java
MIT License
736 stars 185 forks source link

Cannot use Json.array() to create inline arrays #79

Closed hcoles closed 7 years ago

hcoles commented 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.

bernardosulzbach commented 7 years ago

@hcoles fixed on master here isn't it?

hcoles commented 7 years ago

Ah, so it is.

When is a release expected?