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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T03:10:38+00:00 2026-06-17T03:10:38+00:00

After trying a lot sorry for asking such a trivial question. Given below screenshot

  • 0

After trying a lot sorry for asking such a trivial question.

Given below screenshot consist of a data that I have successfully received from the server.
enter image description here

I would like to know how to traverse through the data since whenever I try to cast it to something and try a foreach it gives an error.

The actual data sent from the server is a List() type.

I want to know how to cast it to same type and use it here.

I tried casting but it says unexpected token here.

Any help is appreciated.

  • 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-17T03:10:39+00:00Added an answer on June 17, 2026 at 3:10 am

    JSON.parse return type depends on the String you try to parse. See the doc :

    Parses json and build the corresponding parsed JSON value.

    Parsed JSON values are of the types num, String, bool, Null, Lists of parsed JSON values or Maps from String to parsed JSON values.

    From your screenshot, it seems that the return value is a List. You can do something like the following to use it (did you notice the typo in your commented code – .fore) :

    final parsedList = JSON.parse(e.data)/*.fore*/;
    parsedList.forEach((x){
      query('#idData').appendText(x[0]);
      query('#idData').appendText(x[1]);
      query('#idData').appendText(x[2]);
      query('#idData').appendText(x[3]);
    });
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

After trying a lot i decided to ask question on stackoverflow, I create a
After trying to figure how to have an effective word counter of a string,
After trying a lot of ways, can you help me to fix this code.
This might seem like a silly question, but after asking some questions on stackoverflow
I'm trying to add a second row after my NSToolbar in my app, that
I have an application that does a lot work on S3, mostly downloading files
After 2 days of trying to guess right way I give up. Lot of
I'm trying to reorder UITableView in iOS application. After harvesting a lot of StackOverFlow
May be same question is encountered to you before, I am sorry for that
So I have a lot of custom objects that could contain a lot of

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.