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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T03:59:28+00:00 2026-06-03T03:59:28+00:00

I am trying to parse a local JSON file that has been stored in

  • 0

I am trying to parse a local JSON file that has been stored in the applicationDataDirectory. Im just needing to grab items from this file. Running V.2 of titanium

The JSON data structure looks like this

{
"object_name": [
    {
        "title": "Burrton",
        "value": "Burrton",
        "homeof": "Chargers",
        "logo": "images/logos/BURRTON.jpg",
        "colors": "#cccccc;#a9a9a9",
        "links": {
            "tsr": "http://www.schurzdigital.com/mfeeds/CollectionFeed.php?site=http%3A%2F%2Fwww.catchitkansas.com&collection=cik_burrton_headlines&title=cik_burrton_headlines&limit=25",
            "sports": "www.schurzdigital.com/mfeeds/CollectionFeed.php?site=http%3A%2F%2Fwww.catchitkansas.com&collection=cik_burden_headlines&title=cik_burden_headlines&limit=25",
            "videos": "http://www.schurzdigital.com/mfeeds/TividFeedConvert.php?site=http%3A%2F%2Fwww.catchitkansas.com&slug=e9c0b075-3230-4a45-803e-7ccb4b7f754e&title=Top%20videos&limit=25",
            "photos": "http://serve.a-feed.com/service/getFeed.kickAction?feedId=1014509&as=8768",
            "stats": {
                "boys": {
                    "football": "http://stats.catchitkansas.com/report_fb-schedule_results.php?sport=15&team=763",
                    "basketball": "http://stats.catchitkansas.com/report_baskb-schedule_results.php?sport=26&team=2946",
                    "cross country": "http://stats.catchitkansas.com/report_cc-schedule_results.php?sport=13&team=764",
                    "golf": "http://stats.catchitkansas.com/report_golf-schedule_results.php?sport=16&team=767",
                    "track": "http://stats.catchitkansas.com/report_trackfield-schedule_results.php?sport=32&team=2948"
                },
                "girls": {
                    "volleyball": "http://stats.catchitkansas.com/report_vb-schedule_results.php?sport=22&team=766",
                    "basketball": "http://stats.catchitkansas.com/report_baskb-schedule_results.php?sport=27&team=2947",
                    "cross country": "http://stats.catchitkansas.com/report_cc-schedule_results.php?sport=13&team=764",
                    "golf": "http://stats.catchitkansas.com/report_golf-schedule_results.php?sport=17&team=768",
                    "track": "http://stats.catchitkansas.com/report_trackfield-schedule_results.php?sport=32&team=2948"
                }
            }
        }
    }
]
}

The Code im using to parse the file.

var fileName = 'school_select.json';
var file = Titanium.Filesystem.getFile(Titanium.Filesystem.applicationDataDirectory, fileName);

if (file.exists()) {
  var json = file.read();
  var jsonObject = JSON.parse(json);

    one.text = jsonObject.object_name[0].title; 
    two.text = jsonObject.object_name[0].homeof;
}
  • 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-03T03:59:29+00:00Added an answer on June 3, 2026 at 3:59 am

    I answered my own question. I used the following code.

    var fileName = 'school_select.json'; 
    var file = Titanium.Filesystem.getFile(Titanium.Filesystem.applicationDataDirectory, fileName);    
    var json, object_name, locatie, i, row, title, value, homeof, logo, colors, link; 
    var preParseData = (file.read().text); 
    var response = JSON.parse(preParseData); 
        Ti.API.info('title = ' + response.object_name[0].title);
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am trying to write a script that will parse a local file and
Hi I am trying to Parse a local xml file (which has database table
I am currently trying to parse a local JSON file on Webkit browsers and
I'm trying to parse a log file that looks like this: %%%% 09-May-2009 04:10:29
I have been trying to load images which are in database(on local phone) .JSON
I'm trying to return some JSON from my Spring webapp using Jackson and parse
I am trying to parse some data from external site to local script. Local
I'm trying to parse a multipart/form-data request properly, it works unless the file that
Excuse the tabs. I'm trying to download a file from remote to local and
I'm trying to parse the json signed_request you receive from Facebook in perl but

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.