private void addToArray ( JsonNode j ) { if ( j instanceof ArrayNode ) { for ( Iterator < JsonNode > itr = ( ( ArrayNode ) j ) . elements ( ) ; itr . hasNext ( ) ; ) { addToArray ( itr . next ( ) ) ; } } else { ( ( ArrayNode ) node ) . add ( j ) ; } }
Adds p into this array projection