def __create_arthur_json(self, repo, backend_args):
backend_args = self._compose_arthur_params(self.backend_section, repo)<EOL>if self.backend_section == '<STR_LIT>':<EOL><INDENT>backend_args['<STR_LIT>'] = os.path.join(self.REPOSITORY_DIR, repo)<EOL><DEDENT>backend_args['<STR_LIT>'] = self.backend_tag(repo)<EOL>ajson = {"<STR_LIT>": [{}]}<EOL>ajson["<STR_LIT>"][<NUM_LIT:0>]['<STR_LIT>'] = self.backend_tag(repo)<EOL>ajson["<STR_LIT>"][<NUM_LIT:0>]['<STR_LIT>'] = self.backend_section.split("<STR_LIT::>")[<NUM_LIT:0>]<EOL>ajson["<STR_LIT>"][<NUM_LIT:0>]['<STR_LIT>'] = backend_args<EOL>ajson["<STR_LIT>"][<NUM_LIT:0>]['<STR_LIT>'] = backend_args['<STR_LIT>']<EOL>ajson["<STR_LIT>"][<NUM_LIT:0>]['<STR_LIT>'] = {}<EOL>ajson["<STR_LIT>"][<NUM_LIT:0>]['<STR_LIT>'] = {"<STR_LIT>": self.ARTHUR_TASK_DELAY}<EOL>es_col_url = self._get_collection_url()<EOL>es_index = self.conf[self.backend_section]['<STR_LIT>']<EOL>es = ElasticSearch(es_col_url, es_index)<EOL>connector = get_connector_from_name(self.backend_section)<EOL>klass = connector[<NUM_LIT:0>]  <EOL>signature = inspect.signature(klass.fetch)<EOL>last_activity = None<EOL>filter_ = {"<STR_LIT:name>": "<STR_LIT>", "<STR_LIT:value>": backend_args['<STR_LIT>']}<EOL>if '<STR_LIT>' in signature.parameters:<EOL><INDENT>last_activity = es.get_last_item_field('<STR_LIT>', [filter_])<EOL>if last_activity:<EOL><INDENT>ajson["<STR_LIT>"][<NUM_LIT:0>]['<STR_LIT>']['<STR_LIT>'] = last_activity.isoformat()<EOL><DEDENT><DEDENT>elif '<STR_LIT>' in signature.parameters:<EOL><INDENT>last_activity = es.get_last_item_field('<STR_LIT>', [filter_])<EOL>if last_activity:<EOL><INDENT>ajson["<STR_LIT>"][<NUM_LIT:0>]['<STR_LIT>']['<STR_LIT>'] = last_activity<EOL><DEDENT><DEDENT>if last_activity:<EOL><INDENT>logging.info("<STR_LIT>", last_activity)<EOL><DEDENT>return(ajson)<EOL>
Create the JSON for configuring arthur to collect data

        https://github.com/grimoirelab/arthur#adding-tasks
        Sample for git:

        {
        "tasks": [
            {
                "task_id": "arthur.git",
                "backend": "git",
                "backend_args": {
                    "gitpath": "/tmp/arthur_git/",
                    "uri": "https://github.com/grimoirelab/arthur.git"
                },
                "category": "commit",
                "archive_args": {
                    "archive_path": '/tmp/test_archives',
                    "fetch_from_archive": false,
                    "archive_after": None
                },
                "scheduler_args": {
                    "delay": 10
                }
            }
        ]
        }