how to parse response json from two different api calls ,but has same dictionary names with different values in a nested for loopDictionary (same value, different key)Creating nested Json structure with multiple key values in Python from JsonHow to change the encoding of JSON dictionary string value?How to compare same keys values from two different dictHow to compare same keys values from two different dict with percentageHow to compare same keys values from different dict with percentage“No JSON Object Could be decoded” when loading JSON data from APIIs there a way to use Python to call into an API for a given list of values by using a for loop and calling from a list?How to parse json response from two api calls with similar key and different values in a nested for loopHow to parse json response from two different api calls in a nested for loop?
Why does the U.S. military maintain their own weather satellites?
What is a "hashed transaction" in SQL Server Replication terminology?
Are there indian reservations in United States where you can't live if you aren't a tribal member?
Welche normative Autorität hat der Duden? / What's the normative authority of the Duden?
What is the motivation behind designing a control stick that does not move?
Create a list of snaking numbers under 50,000
Where should I draw the line on follow up questions from previous employer
In Endgame, wouldn't Stark have remembered Hulk busting out of the stairwell?
What are the in-game differences between WoW Classic and the original 2006 Version
Under GDPR can I avoid divulging a customer's data to the government?
Was it illegal to blaspheme God in Antioch in 360.-410.?
IList<T> implementation
Can inductive kick be discharged without freewheeling diode, in this example?
Is this homebrew "Faerie Fire Grenade" unbalanced?
'spazieren' - walking in a silly and affected manner?
Could a complex system of reaction wheels be used to propel a spacecraft?
Moscow SVO airport, how to avoid scam taxis without pre-booking?
How can a trade secret thief avoid being caught?
Eliminate key lookup in execution plan
Why do motor drives have multiple bus capacitors of small value capacitance instead of a single bus capacitor of large value?
Properly unlinking hard links
What is this "opened" cube called?
German equivalent to "going down the rabbit hole"
Is "prohibition against," a double negative?
how to parse response json from two different api calls ,but has same dictionary names with different values in a nested for loop
Dictionary (same value, different key)Creating nested Json structure with multiple key values in Python from JsonHow to change the encoding of JSON dictionary string value?How to compare same keys values from two different dictHow to compare same keys values from two different dict with percentageHow to compare same keys values from different dict with percentage“No JSON Object Could be decoded” when loading JSON data from APIIs there a way to use Python to call into an API for a given list of values by using a for loop and calling from a list?How to parse json response from two api calls with similar key and different values in a nested for loopHow to parse json response from two different api calls in a nested for loop?
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;
I want to parse response json from two different api calls ,but has same dictionary names with different values in a nested for loop
I was able to get from the first api call, but failing on second api call with same dict as issues in both call but the key values are different.
def classtest(self):
apione = "http://jira.com/rest/1"
headers =
'content-type': "application/json",
requestglobal = requests.request("GET", apione, headers=headers)
responseglobal = requestglobal.text
responseglobal = json.loads(responseglobal)
for i in responseglobal['issues']:
issue1 = i[key]
print(issue1)
apitwo = "https://jira.com/rest/2" + str(issue1)
requesttwo = requests.request("GET", apitwo, headers=headers)
responsetwo = requesttwo.text
responsetwo = json.loads(responsetwo)
for i in responsetwo['issues']:
issue2 = i[key] + str(issue1)
print(issue2)
apitthree = "https://jira.com/rest/3" + str(issue1) + str(issue3)
requestthree = requests.request("GET", apitthree, headers=headers)
responsethree = requestthree.text
responsethree = json.loads(responsetthree)
for i in responsethree['issues']:
issue3 = i[key] + str(issue2)
print(issue3)
print("something from thirdloop")
print("something from second loop")
print ("something from first for loop")
I want all the issues from all three api calls.
python python-3.x python-2.7 jython jython-2.7
add a comment |
I want to parse response json from two different api calls ,but has same dictionary names with different values in a nested for loop
I was able to get from the first api call, but failing on second api call with same dict as issues in both call but the key values are different.
def classtest(self):
apione = "http://jira.com/rest/1"
headers =
'content-type': "application/json",
requestglobal = requests.request("GET", apione, headers=headers)
responseglobal = requestglobal.text
responseglobal = json.loads(responseglobal)
for i in responseglobal['issues']:
issue1 = i[key]
print(issue1)
apitwo = "https://jira.com/rest/2" + str(issue1)
requesttwo = requests.request("GET", apitwo, headers=headers)
responsetwo = requesttwo.text
responsetwo = json.loads(responsetwo)
for i in responsetwo['issues']:
issue2 = i[key] + str(issue1)
print(issue2)
apitthree = "https://jira.com/rest/3" + str(issue1) + str(issue3)
requestthree = requests.request("GET", apitthree, headers=headers)
responsethree = requestthree.text
responsethree = json.loads(responsetthree)
for i in responsethree['issues']:
issue3 = i[key] + str(issue2)
print(issue3)
print("something from thirdloop")
print("something from second loop")
print ("something from first for loop")
I want all the issues from all three api calls.
python python-3.x python-2.7 jython jython-2.7
add a comment |
I want to parse response json from two different api calls ,but has same dictionary names with different values in a nested for loop
I was able to get from the first api call, but failing on second api call with same dict as issues in both call but the key values are different.
def classtest(self):
apione = "http://jira.com/rest/1"
headers =
'content-type': "application/json",
requestglobal = requests.request("GET", apione, headers=headers)
responseglobal = requestglobal.text
responseglobal = json.loads(responseglobal)
for i in responseglobal['issues']:
issue1 = i[key]
print(issue1)
apitwo = "https://jira.com/rest/2" + str(issue1)
requesttwo = requests.request("GET", apitwo, headers=headers)
responsetwo = requesttwo.text
responsetwo = json.loads(responsetwo)
for i in responsetwo['issues']:
issue2 = i[key] + str(issue1)
print(issue2)
apitthree = "https://jira.com/rest/3" + str(issue1) + str(issue3)
requestthree = requests.request("GET", apitthree, headers=headers)
responsethree = requestthree.text
responsethree = json.loads(responsetthree)
for i in responsethree['issues']:
issue3 = i[key] + str(issue2)
print(issue3)
print("something from thirdloop")
print("something from second loop")
print ("something from first for loop")
I want all the issues from all three api calls.
python python-3.x python-2.7 jython jython-2.7
I want to parse response json from two different api calls ,but has same dictionary names with different values in a nested for loop
I was able to get from the first api call, but failing on second api call with same dict as issues in both call but the key values are different.
def classtest(self):
apione = "http://jira.com/rest/1"
headers =
'content-type': "application/json",
requestglobal = requests.request("GET", apione, headers=headers)
responseglobal = requestglobal.text
responseglobal = json.loads(responseglobal)
for i in responseglobal['issues']:
issue1 = i[key]
print(issue1)
apitwo = "https://jira.com/rest/2" + str(issue1)
requesttwo = requests.request("GET", apitwo, headers=headers)
responsetwo = requesttwo.text
responsetwo = json.loads(responsetwo)
for i in responsetwo['issues']:
issue2 = i[key] + str(issue1)
print(issue2)
apitthree = "https://jira.com/rest/3" + str(issue1) + str(issue3)
requestthree = requests.request("GET", apitthree, headers=headers)
responsethree = requestthree.text
responsethree = json.loads(responsetthree)
for i in responsethree['issues']:
issue3 = i[key] + str(issue2)
print(issue3)
print("something from thirdloop")
print("something from second loop")
print ("something from first for loop")
I want all the issues from all three api calls.
python python-3.x python-2.7 jython jython-2.7
python python-3.x python-2.7 jython jython-2.7
edited Mar 27 at 23:14
Kumar
asked Mar 27 at 23:07
KumarKumar
228 bronze badges
228 bronze badges
add a comment |
add a comment |
0
active
oldest
votes
Your Answer
StackExchange.ifUsing("editor", function ()
StackExchange.using("externalEditor", function ()
StackExchange.using("snippets", function ()
StackExchange.snippets.init();
);
);
, "code-snippets");
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "1"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55387832%2fhow-to-parse-response-json-from-two-different-api-calls-but-has-same-dictionary%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
0
active
oldest
votes
0
active
oldest
votes
active
oldest
votes
active
oldest
votes
Is this question similar to what you get asked at work? Learn more about asking and sharing private information with your coworkers using Stack Overflow for Teams.
Is this question similar to what you get asked at work? Learn more about asking and sharing private information with your coworkers using Stack Overflow for Teams.
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55387832%2fhow-to-parse-response-json-from-two-different-api-calls-but-has-same-dictionary%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown