private void parseObject ( JsonReader in , HashMap < String , Object > objMap , String name ) throws IOException { HashMap < String , Object > innerObject = new HashMap <> ( ) ; in . beginObject ( ) ; while ( in . peek ( ) != JsonToken . END_OBJECT ) { parseNext ( in , innerObject ) ; } in . endObject ( ) ; objMap . put ( name , innerObject ) ; }
Parses a JSON object and adds it to the main object map .