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

  • Home
  • SEARCH
  • 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 6610097
In Process

The Archive Base Latest Questions

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

Im getting a response from twitter in the form of a string, What I

  • 0

Im getting a response from twitter in the form of a string,

What I need is to send the parts where is a comment to an array,

here an example of the string

[{"geo":null,"coordinates":null,"retweeted":false,... 
"text":"@KristinaKlp saluditos y besos d colores!"},{"geo":null,"coordinates...

so what I really need are the posts after “text”:” =

@KristinaKlp saluditos y besos d colores!

So, how can I take the string and parse it so I get all the messages in an array hopefully?

Thanks a lot!

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

    I haven’t done JSON parsing myself in an iOS App, but you should be able to use a library like the json-framework. This library will allow you to easily parse JSON and generate json from dictionaries / arrays (that’s really all JSON is composed of).

    SBJson docs:

    JSON is mapped to Objective-C types in the following way:

    • null -> NSNull
    • string -> NSString
    • array -> NSMutableArray
    • object -> NSMutableDictionary
    • true -> NSNumber’s -numberWithBool:YES
    • false -> NSNumber’s -numberWithBool:NO
    • integer up to 19 digits -> NSNumber’s -numberWithLongLong:
    • all other numbers -> NSDecimalNumber

    Since Objective-C doesn’t have a dedicated class for boolean values,
    these turns into NSNumber instances. However, since these are
    initialised with the -initWithBool: method they round-trip back to JSON
    properly. In other words, they won’t silently suddenly become 0 or 1;
    they’ll be represented as ‘true’ and ‘false’ again.

    As an optimisation integers up to 19 digits in length (the max length
    for signed long long integers) turn into NSNumber instances, while
    complex ones turn into NSDecimalNumber instances. We can thus avoid any
    loss of precision as JSON allows ridiculously large numbers.

    @page objc2json Objective-C to JSON

    Objective-C types are mapped to JSON types in the following way:

    • NSNull -> null
    • NSString -> string
    • NSArray -> array
    • NSDictionary -> object
    • NSNumber’s -initWithBool:YES -> true
    • NSNumber’s -initWithBool:NO -> false
    • NSNumber -> number

    @note In JSON the keys of an object must be strings. NSDictionary
    keys need not be, but attempting to convert an NSDictionary with
    non-string keys into JSON will throw an exception.

    NSNumber instances created with the -numberWithBool: method are
    converted into the JSON boolean “true” and “false” values, and vice
    versa. Any other NSNumber instances are converted to a JSON number the
    way you would expect.

    Tutorials

    Are there any tutorials? Yes! These are all tutorials provided by
    third-party people:

    JSON Framework for iPhone – a Flickr tutorial in three parts by John
    Muchow. JSON Over HTTP On The iPhone – by Dan Grigsby. AS3 to Cocoa touch: JSON by Andy Jacobs.

    There are other libraries you can check out as well like TouchJSON, JSONKit, Yet Another JSON Library

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

Sidebar

Related Questions

I am getting response from server side in the form of json array.I need
I am getting response from service as a simple xml object of form Array
I am getting JSON response from the server..Inside that JSON string i am having
I am getting response from web service in xml format and data are inside
i'm getting response 503 from Facebook linter while my website is accessible, what went
I'm having trouble getting a response from my php jquery / json / ajax.
WebClient.DownloadStringAsync does cache the server response. After once getting a response from the server
I'm trying to POST a http request using ajax, but getting a response from
I am getting data from server it gives in response a NSString which hase
when i click post the post response that i am getting from firefox is:

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.