次の複雑なJson出力をJIRAからRを使用してデータフレームに解析できません。PowerShellを使用してデータフレームを部分的に解析できます。しかし、Rでこれを達成したいと思います。 RjsonまたはjsonliteまたはRJSONIOを使用してこのフォーラムにリストされたソリューションは、この例では機能しませんでした。Rを使用して複雑なjsonをデータフレームに解析する
[
{
"expand": [
"operations,versionedRepresentations,editmeta,changelog,renderedFields"
],
"id": [
"22513"
],
"self": [
"https://somecompany.atlassian.net/rest/api/latest/issue/22513"
],
"key": [
"DATA-1314"
],
"fields": {
"issuetype": {
"self": [
"https://somecompany.atlassian.net/rest/api/2/issuetype/10001"
],
"id": [
"10001"
],
"description": [
"A task that needs to be done."
],
"iconUrl": [
"https://somecompany.atlassian.net/secure/viewavatar?size=xsmall&avatarId=10318&avatarType=issuetype"
],
"name": [
"Task"
],
"subtask": [
false
],
"avatarId": [
10318
]
},
"timespent": {},
"project": {
"self": [
"https://somecompany.atlassian.net/rest/api/2/project/10300"
],
"id": [
"10300"
],
"key": [
"DATA"
],
"name": [
"Data"
],
"avatarUrls": {
"48x48": [
"https://somecompany.atlassian.net/secure/projectavatar?avatarId=10324"
],
"24x24": [
"https://somecompany.atlassian.net/secure/projectavatar?size=small&avatarId=10324"
],
"16x16": [
"https://somecompany.atlassian.net/secure/projectavatar?size=xsmall&avatarId=10324"
],
"32x32": [
"https://somecompany.atlassian.net/secure/projectavatar?size=medium&avatarId=10324"
]
}
},
"fixVersions": [],
"aggregatetimespent": {},
"resolution": {},
"customfield_10500": {},
"customfield_10700": {},
"resolutiondate": {},
"workratio": [
-1
],
"lastViewed": [
"2017-07-14T15:33:40.422-0700"
],
"watches": {
"self": [
"https://somecompany.atlassian.net/rest/api/2/issue/DATA-1314/watchers"
],
"watchCount": [
1
],
"isWatching": [
true
]
},
"created": [
"2017-07-12T11:56:12.000-0700"
],
"customfield_10022": {},
"customfield_10023": [
"1|i001zz:"
],
"priority": {
"self": [
"https://somecompany.atlassian.net/rest/api/2/priority/3"
],
"iconUrl": [
"https://somecompany.atlassian.net/images/icons/priorities/medium.svg"
],
"name": [
"Medium"
],
"id": [
"3"
]
},
"customfield_10300": {},
"labels": [
[
"data"
]
],
"customfield_10017": {},
"customfield_10018": {},
"timeestimate": {},
"aggregatetimeoriginalestimate": {},
"versions": [],
"issuelinks": [],
"assignee": {
"self": [
"https://somecompany.atlassian.net/rest/api/2/user?username=UserName"
],
"name": [
"UserName"
],
"key": [
"UserName"
],
"accountId": [
"1234567890"
],
"emailAddress": [
"[email protected]"
],
"avatarUrls": {
"48x48": [
"https://avatar-cdn.atlassian.com/12345678901206a6830d189deda8cc?s=48&d=https%3A%2F%2Fsecure.gravatar.com%2Favatar%12345678901215406a6830d189deda8cc%3Fd%3Dmm%26s%3D48%26noRedirect%3Dtrue"
],
"24x24": [
"https://avatar-cdn.atlassian.com/12345678901206a6830d189deda8cc?s=24&d=https%3A%2F%2Fsecure.gravatar.com%2Favatar%12345678901215406a6830d189deda8cc%3Fd%3Dmm%26s%3D24%26noRedirect%3Dtrue"
],
"16x16": [
"https://avatar-cdn.atlassian.com/12345678901206a6830d189deda8cc?s=16&d=https%3A%2F%2Fsecure.gravatar.com%2Favatar%12345678901215406a6830d189deda8cc%3Fd%3Dmm%26s%3D16%26noRedirect%3Dtrue"
],
"32x32": [
"https://avatar-cdn.atlassian.com/12345678901206a6830d189deda8cc?s=32&d=https%3A%2F%2Fsecure.gravatar.com%2Favatar%12345678901215406a6830d189deda8cc%3Fd%3Dmm%26s%3D32%26noRedirect%3Dtrue"
]
},
"displayName": [
"FName LName"
],
"active": [
true
],
"timeZone": [
"America/Los_Angeles"
]
},
"updated": [
"2017-07-12T13:07:51.000-0700"
],
"status": {
"self": [
"https://somecompany.atlassian.net/rest/api/2/status/1"
],
"description": [
"The issue is open and ready for the assignee to start work on it."
],
"iconUrl": [
"https://somecompany.atlassian.net/images/icons/statuses/open.png"
],
"name": [
"Open"
],
"id": [
"1"
],
"statusCategory": {
"self": [
"https://somecompany.atlassian.net/rest/api/2/statuscategory/2"
],
"id": [
2
],
"key": [
"new"
],
"colorName": [
"blue-gray"
],
"name": [
"To Do"
]
}
},
"components": [],
"timeoriginalestimate": {},
"description": {},
"customfield_10010": {},
"customfield_10011": {},
"customfield_10012": {},
"customfield_10013": {},
"customfield_10014": {},
"customfield_10015": {},
"customfield_10401": [
"FName"
],
"customfield_10600": {},
"customfield_10402": [
"TESTING DATA DOWNLOAD USING API"
],
"customfield_10006": {},
"customfield_10403": [
{
"self": [
"https://somecompany.atlassian.net/rest/api/2/customFieldOption/10100"
],
"value": [
"i_file"
],
"id": [
"10100"
]
}
],
"customfield_10007": {},
"customfield_10800": {},
"customfield_10008": {},
"aggregatetimeestimate": {},
"customfield_10009": {},
"summary": [
"testing"
],
"creator": {
"self": [
"https://somecompany.atlassian.net/rest/api/2/user?username=UserName"
],
"name": [
"UserName"
],
"key": [
"UserName"
],
"accountId": [
"1234567890"
],
"emailAddress": [
"[email protected]"
],
"avatarUrls": {
"48x48": [
"https://avatar-cdn.atlassian.com/12345678901206a6830d189deda8cc?s=48&d=https%3A%2F%2Fsecure.gravatar.com%2Favatar%12345678901215406a6830d189deda8cc%3Fd%3Dmm%26s%3D48%26noRedirect%3Dtrue"
],
"24x24": [
"https://avatar-cdn.atlassian.com/12345678901206a6830d189deda8cc?s=24&d=https%3A%2F%2Fsecure.gravatar.com%2Favatar%12345678901215406a6830d189deda8cc%3Fd%3Dmm%26s%3D24%26noRedirect%3Dtrue"
],
"16x16": [
"https://avatar-cdn.atlassian.com/12345678901206a6830d189deda8cc?s=16&d=https%3A%2F%2Fsecure.gravatar.com%2Favatar%12345678901215406a6830d189deda8cc%3Fd%3Dmm%26s%3D16%26noRedirect%3Dtrue"
],
"32x32": [
"https://avatar-cdn.atlassian.com/12345678901206a6830d189deda8cc?s=32&d=https%3A%2F%2Fsecure.gravatar.com%2Favatar%12345678901215406a6830d189deda8cc%3Fd%3Dmm%26s%3D32%26noRedirect%3Dtrue"
]
},
"displayName": [
"FName LName"
],
"active": [
true
],
"timeZone": [
"America/Los_Angeles"
]
},
"subtasks": [],
"reporter": {
"self": [
"https://somecompany.atlassian.net/rest/api/2/user?username=UserName"
],
"name": [
"UserName"
],
"key": [
"UserName"
],
"accountId": [
"1234567890"
],
"emailAddress": [
"[email protected]"
],
"avatarUrls": {
"48x48": [
"https://avatar-cdn.atlassian.com/12345678901206a6830d189deda8cc?s=48&d=https%3A%2F%2Fsecure.gravatar.com%2Favatar%12345678901215406a6830d189deda8cc%3Fd%3Dmm%26s%3D48%26noRedirect%3Dtrue"
],
"24x24": [
"https://avatar-cdn.atlassian.com/12345678901206a6830d189deda8cc?s=24&d=https%3A%2F%2Fsecure.gravatar.com%2Favatar%12345678901215406a6830d189deda8cc%3Fd%3Dmm%26s%3D24%26noRedirect%3Dtrue"
],
"16x16": [
"https://avatar-cdn.atlassian.com/12345678901206a6830d189deda8cc?s=16&d=https%3A%2F%2Fsecure.gravatar.com%2Favatar%12345678901215406a6830d189deda8cc%3Fd%3Dmm%26s%3D16%26noRedirect%3Dtrue"
],
"32x32": [
"https://avatar-cdn.atlassian.com/12345678901206a6830d189deda8cc?s=32&d=https%3A%2F%2Fsecure.gravatar.com%2Favatar%12345678901215406a6830d189deda8cc%3Fd%3Dmm%26s%3D32%26noRedirect%3Dtrue"
]
},
"displayName": [
"FName LName"
],
"active": [
true
],
"timeZone": [
"America/Los_Angeles"
]
},
"aggregateprogress": {
"progress": [
0
],
"total": [
0
]
},
"customfield_10000": {},
"customfield_10001": {},
"customfield_10002": {},
"customfield_10004": [
"{}"
],
"customfield_10400": [
"DA-000000"
],
"environment": {},
"duedate": [
"2017-07-13"
],
"progress": {
"progress": [
0
],
"total": [
0
]
},
"votes": {
"self": [
"https://somecompany.atlassian.net/rest/api/2/issue/DATA-1314/votes"
],
"votes": [
0
],
"hasVoted": [
false
]
}
}
}
]
パッケージ 'jsonlite'をチェックしますか? – CPak
これは非常に長方形に見えません。最終的な表はどのように正確に見えますか? – MrFlick