JsonEvent acceptObjectSeparator ( ) throws IOException { JsonEvent event = readEvent ( ) ; if ( event == JsonEvent . COMMA ) { return readEvent ( ) ; // leniently allow comma before objectEnd } else { return ensureEvent ( event , JsonEvent . OBJECT_END ) ; } }
accepts a comma or object end