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;








1















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.










share|improve this question
































    1















    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.










    share|improve this question




























      1












      1








      1








      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.










      share|improve this question
















      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






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Mar 27 at 23:14







      Kumar

















      asked Mar 27 at 23:07









      KumarKumar

      228 bronze badges




      228 bronze badges

























          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
          );



          );













          draft saved

          draft discarded


















          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.



















          draft saved

          draft discarded
















































          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.




          draft saved


          draft discarded














          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





















































          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







          Popular posts from this blog

          Kamusi Yaliyomo Aina za kamusi | Muundo wa kamusi | Faida za kamusi | Dhima ya picha katika kamusi | Marejeo | Tazama pia | Viungo vya nje | UrambazajiKuhusu kamusiGo-SwahiliWiki-KamusiKamusi ya Kiswahili na Kiingerezakuihariri na kuongeza habari

          SQL error code 1064 with creating Laravel foreign keysForeign key constraints: When to use ON UPDATE and ON DELETEDropping column with foreign key Laravel error: General error: 1025 Error on renameLaravel SQL Can't create tableLaravel Migration foreign key errorLaravel php artisan migrate:refresh giving a syntax errorSQLSTATE[42S01]: Base table or view already exists or Base table or view already exists: 1050 Tableerror in migrating laravel file to xampp serverSyntax error or access violation: 1064:syntax to use near 'unsigned not null, modelName varchar(191) not null, title varchar(191) not nLaravel cannot create new table field in mysqlLaravel 5.7:Last migration creates table but is not registered in the migration table

          은진 송씨 목차 역사 본관 분파 인물 조선 왕실과의 인척 관계 집성촌 항렬자 인구 같이 보기 각주 둘러보기 메뉴은진 송씨세종실록 149권, 지리지 충청도 공주목 은진현