@ SuppressWarnings ( "unchecked" ) public void removeProperty ( Object obj , Object key ) { if ( isMap ( obj ) ) ( ( Map ) obj ) . remove ( key . toString ( ) ) ; else { List list = ( List ) obj ; int index = key instanceof Integer ? ( Integer ) key : Integer . parseInt ( key . toString ( ) ) ; list . remove ( index ) ; } }
Removes a value in an object or array