Update JsonValue.java

Line 308, switch needs to test value's type, as opposed to object's type, as with other #asArray methods.