}
if (getScope().isRoot() && !isStartDocumentRead()) { // hack: allow to read simple value
readData(source.value(), XMLStreamConstants.CHARACTERS);
} else {
readStartElementTag(name);
Value value = source.value();
if (value != JsonStreamSource.NULL) {
readData(value, XMLStreamConstants.CHARACTERS);
}
readEndElementTag();
}