- private void handleNoSchemaFound( final JsonWriter writer, final Node<?> node,
- final CompositeNode parent ) throws IOException {
- if( node instanceof SimpleNode<?> ) {
- List<SimpleNode<?>> nodeLeafList = parent.getSimpleNodesByName( node.getNodeType() );
- if( nodeLeafList.size() == 1 ) {
- writeName( node, null, writer );
- writeValue( writer, node.getValue() );
- }
- else { // more than 1, write as a json array
- writeName( node, null, writer );
+ private void handleNoSchemaFound(final JsonWriter writer, final Node<?> node, final CompositeNode parent)
+ throws IOException {
+ if (node instanceof SimpleNode<?>) {
+ List<SimpleNode<?>> nodeLeafList = parent.getSimpleNodesByName(node.getNodeType());
+ if (nodeLeafList.size() == 1) {
+ writeName(node, null, writer);
+ writeValue(writer, node.getValue());
+ } else { // more than 1, write as a json array
+ writeName(node, null, writer);