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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T07:26:16+00:00 2026-05-31T07:26:16+00:00

I got this data from my server using JSON: { ID = 198; dtDate

  • 0

I got this data from my server using JSON:

{
    ID = 198;
    dtDate = "2012-03-14 00:00:00";
    dtTime = "06:00:00";
    iPublished = 1;
    sProgram = "Devotional Hits";
}
{
    ID = 199;
    dtDate = "2012-03-14 00:00:00";
    dtTime = "07:00:00";
    iPublished = 1;
    sProgram = "Old Malayalam Hits";
    }
{
    ID = 200;
    dtDate = "2012-03-14 00:00:00";
    dtTime = "08:00:00";
    iPublished = 1;
    sProgram = "Malayalam New Hits";
}
{
    ID = 201;
    dtDate = "2012-03-14 00:00:00";
    dtTime = "09:00:00";
    iPublished = 1;
    sProgram = "Melody Songs";
}
{
    ID = 202;
    dtDate = "2012-03-14 00:00:00";
    dtTime = "10:00:00";
    iPublished = 1;
    sProgram = "Jayachandran Hits";
}
{
    ID = 203;
    dtDate = "2012-03-14 00:00:00";
   dtTime = "11:00:00";
    iPublished = 1;
    sProgram = "Yesudas Hits";
 }
 {
    ID = 204;
    dtDate = "2012-03-14 00:00:00";
    dtTime = "12:00:00";
    iPublished = 1;
    sProgram = "Ilayaraja Hits";
  }

I need to split this data and store sProgram data into an array.. need help.

I need to split this format and I want sProgram and dtTime separately. What should I do for that. I’m a little bit confused about string formatting.

  • 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-31T07:26:17+00:00Added an answer on May 31, 2026 at 7:26 am

    If you are using < IOS 5, add SBJSON to your project

    //in some.m file
    
    #import JSON.h
    
    // Lets say NSString *recievedValue contains your JSON response.
    
    id jsonRep = [receivedValue jsonValue];
    if([jsonRep isKindOfClass:[NSArray class]])
    {
       // returned JSON Value has a array structure.
       NSArray *value = (NSArray *)jsonRep;
       //You can access values using objectAtIndex: method if you already know the Index of a value, in your case i think each array object is a NSDictionary
       if([[value objectAtIndex:0] isKindOfClass:[NSDictionary class]])
       {
         // returned JSON Value has a key value compliant structure.
         NSDictionary *dicValue = (NSDictionary *)[value objectAtIndex:0];
         //You can access values using objectForKey: method if you already know the key value, in your case it can be @"sProgram" for example
       }
    }
    else if([jsonRep isKindOfClass:[NSDictionary class]])
    {
       // returned JSON Value has a key value compliant structure.
       NSDictionary *value = (NSDictionary *)jsonRep;
       //You can access values using objectForKey: method if you already know the key value, in your case it can be @"sProgram" for example
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I got this formula from a data structure book in the bubble sort algorithm.
I tried to populate google chart datatable in server side using PHP.I got JSON
I have a button that grabs some data from the server using ajax, and
Let's say I'm using simpleXML to parse weather data from a remote server, and
i am getting web data from .net web server using NSMutableUrl request. i am
I've got this code I'm trying to use to export data from Excel to
i got some data like this line 1 \n line 2 from my distant
I got this parameter: $objDbCmd.Parameters.Add(@telephone, [System.Data.SqlDbType]::VarChar, 18) | Out-Null; $objDbCmd.Parameters[@telephone].Value = $objUser.Telephone; Where the
I've got this simple Perl script: #! /usr/bin/perl -w use strict; use Data::Dumper; my
I've got 2 select statements, returning data like this: Select 1 col_a col_b Select

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.