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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T11:42:42+00:00 2026-05-18T11:42:42+00:00

What is the best way to get data from the internet, compressed and composed

  • 0

What is the best way to get data from the internet, compressed and composed by PHP, to an iOS app?
Currently, the app reads a string formatted like this:

category1#object2#object3#object4~category2#object2#object3[…]

And that is split up by the #‘s and ~‘s.

Is there a better way to do this, both in the way the data is retrieved (the site it gets it from is open for everyone), and the way the data is formatted?

  • 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-18T11:42:43+00:00Added an answer on May 18, 2026 at 11:42 am

    Use JSON:

    {"category1":["object1", "object2", "object3", "object4"], "category2":["object1", "object2"]}
    

    So say you had a PHP object or associative array, you’d be able to simply invoke json_encode on it and be done with it.

    On the iOS end, you’d want to use JSONKit to parse it.

    The best thing about these two ends of the pipeline is that there is native support for them. For example, json_encode can encode any PHP object to a readable JSON string, while JSONKit can parse a JSON object and store it in an NSDictionary or NSArray.

    Heck, with JSONKit, it augments the capability (using categories on NSDictionary and NSArray) to convert NSDictionary and NSArray objects into JSON, so you can even have a two-way JSON communication pipeline.

    (We do this with our games at Freeverse, the methodology is tried and tested.)

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

What is the best way of handling trying to get data from a DataReader
What's the best way to get a string containing a folder name that I
What's the best way to get the last inserted id using sqlite from Java?
I use Wordpress, PHP, jQuery and AJAX. I can get data from PHP through
I get data from external application: class DataItem { public string key; public int
I'm searching the best way to withdraw some data from my MySQL field by
Possible Duplicates: iPhone: Post data to php page Passing Data From iPhone app to
What's the best way to get user input in a C program where the
What is the best way to get a log of commits on a branch
What is the best way to get hosting of an ASP.NET MVC application to

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.