Getting exception with the following code: org.glassfish.json.JsonStringImpl cannot be cast to javax.json.JsonArray
JsonObjectParser jop = new JsonObjectParser();
JsonObject jo = Json.createObjectBuilder().add("yAxisValue","Yvalue")
.add("xAxisValue","Xvalue").build();
jo.getJsonArray("xAxisValue");
Note: using javax.json java API