私は以下のようにjsonを持っています。キーの「アクティビティ」に角括弧の一部を追加したかっただけです。しかし、このPythonコーディングには新しいので、Pythonを使用してJSONの特定のコンポーネントの角括弧を挿入する方法はありません。jsonでPythonを使って角括弧を追加する
{
"name": "CopyPipeline-rdc",
"properties": {
"end": "2017-02-14T00:00:00Z",
"start": "2017-02-14T00:00:00Z",
"activities": {
"name": "CopyActivity-0",
"type": "Copy",
"input": {
"name": "InputDataset-rdc"
},
"output": {
"name": "OutputDataset-rdc"
},
"policy": {
"retry": 0,
"timeout": "00:00:00",
"concurrency": 1,
"executionpriorityorder": "OldestFirst"
},
"scheduler": {
"style": "StartOfInterval",
"interval": "1",
"frequency": "Day"
},
"typeproperties": {
"source": {
"type": "BlobSource",
"recursive": false
},
"sink": {
"type": "BlobSink",
"writeBatchSize": 0,
"writeBatchTimeout": "00:00:00"
}
}
},
"expiration": "15.00:00:00",
"description": "''",
"pipelinemode": "OneTime"
}
}
あなたがこれまでに試してみましたか? –
これは大失敗かどうかわかりません。 'データ=のjson.loads(query_result)データにおける活性について [ '名前']:リスト内のキーの \t(response.keys()): \t \t活性[キー] =名[キー]' – Arjun