public static ObjectNode getObjAndRemove ( ObjectNode obj , String fieldName ) { ObjectNode result = null ; if ( obj != null ) { result = obj ( remove ( obj , fieldName ) ) ; } return result ; }
Removes the field from a ObjectNode and returns it as ObjectNode