def __add_json_ext(self, children, req):
    jextractors = req.config.get('extract-jsonpath')
    for varname in jextractors:
        cfg = ensure_is_dict(jextractors, varname, 'jsonpath')
        if (LooseVersion(str(self.executor.settings.get('version'))) < LooseVersion('3.0')):
            extractor = JMX._get_json_extractor(varname, cfg['jsonpath'], cfg.get('default', 'NOT_FOUND'), cfg.get('from-variable', None))
        else:
            extractor = JMX._get_internal_json_extractor(varname, cfg['jsonpath'], cfg.get('default', 'NOT_FOUND'), cfg.get('scope', None), cfg.get('from-variable', None), cfg.get('match-no', '0'), cfg.get('concat', False))
        children.append(extractor)
        children.append(etree.Element('hashTree'))
def __add_json_ext(self, children, req):
    jextractors = req.config.get('extract-jsonpath')
    for varname in jextractors:
        cfg = ensure_is_dict(jextractors, varname, 'jsonpath')
        if (LooseVersion(str(self.executor.settings.get('version'))) < LooseVersion('3.0')):
            extractor = JMX._get_json_extractor(varname, cfg['jsonpath'], cfg.get('default', 'NOT_FOUND'), cfg.get('from-variable', None))
        else:
            extractor = JMX._get_internal_json_extractor(varname, cfg['jsonpath'], cfg.get('default', 'NOT_FOUND'), cfg.get('scope', None), cfg.get('from-variable', None), cfg.get('match-no', '0'), cfg.get('concat', False))
        children.append(extractor)
        children.append(etree.Element('hashTree'))