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 6630611
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T22:25:48+00:00 2026-05-25T22:25:48+00:00

I am sending a request to a server, and in return I get a

  • 0

I am sending a request to a server, and in return I get a long block of JSON.

{
  "response":"success",
  "assignments":{
    "17733":{
     "asnid":"17733",
     "asnname":"Yitzhak Rabin PPT",
     "asnclass":"11276",
     "asndue":"2011-10-03",
     "asnnotes":"5 Slides in Hebrew",
     "asnpriority":"0",
     "asnstatus":"open"
    },
    "9811":{
     "asnid":"9811",
     "asnname":"Java Chapter 1",
     "asnclass":"11270",
     "asndue":"2011-09-09",
     "asnnotes":"Review Exercises 1-14. Programming Exercises 1-6 ",
     "asnpriority":"0",
     "asnstatus":"done"
    },

    "9815":{
     "asnid":"9815",
     "asnname":"Hebrew Poems",
     "asnclass":"11276",
     "asndue":"2011-09-12",
     "asnnotes":"1 Name based poem, and One byline poem. See sheet for further reference.",
     "asnpriority":"0",
     "asnstatus":"done"
    },
    "11096":{
     "asnid":"11096",
     "asnname":"Java Ethics Essay",
     "asnclass":"11270",
     "asndue":"2011-09-15",
     "asnnotes":"",
     "asnpriority":"0",
     "asnstatus":"done"
    }
  }
}

In order to parse this data I was using the com.adobe.serialization.json.JSON class. The class turned the data into objects but the problem is I need to check whats in object “17733” or “9811” and get an error.
” 1084: Syntax error: expecting rightparen before .17733″

My code is the following:

if (task == "getAssignments")
    {
        //trace(loader.data);
        var getAssnNumbers:Object = JSON.decode(loader.data);

//Decode JSON Data

        for(var i:* in getAssnNumbers.assignments.17733)
        {
            assnNumbers.push(i);
            trace(i);
        }

//Try to trace the data stored in getAssnNumbers.assigments.17733
}

Is there a way to do this? I checked if the property was enumerated and it returned true, but I cant find a way to access this data.

  • 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-25T22:25:49+00:00Added an answer on May 25, 2026 at 10:25 pm

    Try accessing your property using the bracket notation:

    getAssnNumbers.assignments["17733"]
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to send json string in the get request to the server, here
I need to use a GET request to send JSON to my server via
I'm sending a ACK response back to a SOAP request (via Salesforce) and I
Sending the below request in my phonegapp-ed android app works for GET but not
I am sending POST request from client to the application. On the server side
I have a server (SoapUI) answering requests for a WSDL. When sending test requests,
From My Previous question sending request to apple - from iphone custom application Here,
We've sets of webservices and we have to make request on clientside (sending request
I have written some jQuery ajax code where I am sending a request to
I am sending an AJAX request to a Django view that can potentially take

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.