}
}
}
private void handleScalarToken(JsonToken token, String name) throws JsonParseException, IOException {
ScalarValueType type = ScalarValueType.fromJsonToken(token);
String value = getScalarValueToOutput(type);
if (value == null) {
writer.writeNilElement(name);
} else {
writer.writeScalarField(name, type, value);