public Set < String > keySet ( ) throws IOException { Set < String > ret = new HashSet <> ( ) ; JsonParser p = this . getParser ( ) ; JsonToken t ; t = p . nextToken ( ) ; while ( t != null ) { if ( t == JsonToken . FIELD_NAME ) { ret . add ( p . getCurrentName ( ) ) ; } t = p . nextToken ( ) ; } p . close ( ) ; return ret ; }
Return a set of all key names in the component