public Val nextValue ( ) throws IOException { switch ( peek ( ) ) { case BEGIN_ARRAY : return Val . of ( nextCollection ( ArrayList :: new ) ) ; case BEGIN_OBJECT : return Val . of ( nextMap ( ) ) ; case NAME : return nextKeyValue ( ) . getV2 ( ) ; default : return nextSimpleValue ( ) ; } }
Reads the next value