added code to use an "extractor" field in json

allows the json request to select the particular extractor to use.