Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6765155
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T14:40:45+00:00 2026-05-26T14:40:45+00:00

I need help. I want to print all pageid , title from json format

  • 0

I need help. I want to print all pageid,title from json format using for loop. Can anyone help? thanks

   {"query":
{"categorymembers":[{"pageid":13012551,"ns":0,"title":"List of Indian Punjabi films"}
,{"pageid":13662758,"ns":0,"title":"List of Punjabi language films"},
{"pageid":4628722,"ns":0,"title":"Ae Fond Kiss..."},
{"pageid":32991974,"ns":0,"title":"Aik Aur Ghazi"},
{"pageid":24605022,"ns":0,"title":"Asa Nu Maan Watna Da"},
{"pageid":21467628,"ns":0,"title":"Asoo Billa"},
{"pageid":17757556,"ns":0,"title":"Chaddian Di Doli"},
{"pageid":21369620,"ns":0,"title":"Chadi Jawani Budhe Nu"},
{"pageid":32012994,"ns":0,"title":"Chak De Phatte"},
{"pageid":13664636,"ns":0,"title":"Chann Mahi (1956 film)"}]}}
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T14:40:46+00:00Added an answer on May 26, 2026 at 2:40 pm

    Try this – In python 2.6.1 there is a module called json this parses json string in python objects

    import json
    from pprint import pprint
    
    data = json.load(json_data)
    pprint(data)
    
    for category in data['query']['categorymembers']:
        print 'PageID: %d and Title: %s' % (category['pageid'], category['title'])
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Need help writing a script downloads data from google insight using c# this is
Need some help about with Memcache. I have created a class and want to
I need some help with CSS overflow in IE, namely IE 7. I want
I need help to replace all \n (new line) caracters for in a String,
I'm (very) new to all of this programming stuff and I need help with
I am trying to write a regex using perl but I need some help.
I'm using C# in VS2010 and I need some help with a web application.
need your help with PHP templating. I'm new to PHP (I'm coming from Perl+Embperl).
I'm in need for php help/expertise to tweak/change this preg_match_all function. What I want
I need some help. Don't know if this is possible. I want to have

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.