An example from the docs:
JsonArray value = Json.createArrayBuilder()
.add(Json.createObjectBuilder()
.add("type", "home")
.add("number", "212 555-1234"))
.add(Json.createObjectBuilder()
.add("type", "fax")
.add("number", "646 555-4567"))
.build();
But JsonArray
is an interface, not a class, and a variable's type can't be an interface. So where is class JsonArray
? I guess the package javax.json
contains it, but why isn't it documented?
Not a big deal though, I've already read the interfaces' details, it shows all the needed methods/constructors/return types, and now I know how to use these "classes".