Remove unused variable and switch statement in asStringArray for JsonValue.