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

  • SEARCH
  • Home
  • 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 8104235
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T23:46:45+00:00 2026-06-05T23:46:45+00:00

I am getting a JSON in response from server: { width: 765, height: 990,

  • 0

I am getting a JSON in response from server:

{
    "width": "765",
    "height": "990",
    "srcPath": "http://192.168.5.13:8888/ebook/user_content/_ADMIN_/_MERGED_/1273.pdf",
    "coverPage": "",
    "documents": [
        {
            "index": "1",
            "text": "Archiving Microsoft® Office SharePoint® Server 2007 Data with the Hitachi Content Archive Platform and Hitachi Data Discovery for Microsoft SharePoint",
            "type": "doc",
            "id": "HDS_054227~201106290029",
            "children": [
                {
                    "text": "Page 1",
                    "leaf": "true",
                    "pageLocation": "http://192.168.5.13:8888/ebook/user_content/_ADMIN_/_IMAGES_/HDS_054227~201106290029/image_1.png"
                },
                {
                    "text": "Page 2",
                    "leaf": "true",
                    "pageLocation": "http://192.168.5.13:8888/ebook/user_content/_ADMIN_/_IMAGES_/HDS_054227~201106290029/image_2.png"
                }               

            ]
        },
        {
            "index": "11",
            "text": "Brocade FCoE Enabling Server I/O Consolidation",
            "type": "doc",
            "id": "HDS_053732~201105261741",
            "children": [
                {
                    "text": "Page 1",
                    "leaf": "true",
                    "pageLocation": "http://192.168.5.13:8888/ebook/user_content/_ADMIN_/_IMAGES_/HDS_053732~201105261741/image_1.png"
                },
                {
                    "text": "Page 2",
                    "leaf": "true",
                    "pageLocation": "http://192.168.5.13:8888/ebook/user_content/_ADMIN_/_IMAGES_/HDS_053732~201105261741/image_2.png"
                }
                     ]
        }
    ]
}

And I want to get pagelocation of the children.

Can anyone tell me how to do this?

Hi
i also want to get indexes from this and then want to get pagelocations of that particular children. Can you tell me how would i do that?

And also when i when i am getting indexes array it is returning me ,, only and not the index nos.
I am using following code for that :

  indexes=response.documents.map(function(e){ return e.children.index; }) 

Thanks & Regards

  • 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-06-05T23:46:48+00:00Added an answer on June 5, 2026 at 11:46 pm

    If you’re interested in simply retrieving all the page locations, you can do it using filter:

    var locations = [];
    json.documents.forEach(function(e,i) {
        e.children.forEach(function(e2,i2) {
            locations.push(e2.pageLocation);
        )}
    });
    // returns flat array like [item1,item2,item3,item4]
    

    You can get an array of arrays using map:

    var locations = [];
    var locations = json.documents.map(function(e) {
        return e.children.map(function(e2) {
            return e2.pageLocation;
        });
    });
    
    // returns 2-dimensional array like [[item1,item2],[item1,item2]]
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am getting JSON response from the server..Inside that JSON string i am having
I am getting response from server side in the form of json array.I need
I'm getting a JSON response from the server and i have to loop through
I'm getting the following JSON response from the server: [{id:1,pid:0,type:Individual,code:i,status:1}, {id:2,pid:0,type:Group,code:g,status:1}, {id:15,pid:0,type:asdasd,code:asd,status:1}, {id:16,pid:0,type:asdas,code:asd,status:1}, {id:17,pid:0,type:my
I am getting json response from this google api service to get reverse geo
I'm having trouble getting a response from my php jquery / json / ajax.
Getting Json from the Server and displaying it in the grid is relatively straight
I started getting errors in my browser, parsing JSON return data from the server.
I am receiving a JSON response from our server and it is compressed using
I need to parse the server response from my http post & puts. I

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.