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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T04:42:48+00:00 2026-06-11T04:42:48+00:00

I’m trying to parse JSON from a drupal page to an iOS device. This

  • 0

I’m trying to parse JSON from a drupal page to an iOS device. This is the JSON format:

[{"nid":"20","name":"job 234"},{"nid":"21","name":"job 3534"}]

These are two objects. How do I save them using coredata, and a custom entity? I guess I need matching names for the attributes? Any links or tips will be helpful.

  • 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-11T04:42:49+00:00Added an answer on June 11, 2026 at 4:42 am

    PonyLand,

    Your question is quite general but I’ll try to give you some hints. To achieve your goal you could follow a two steps process:

    1. Parse JSON Data and retrieve objects
    2. Save objects in Core Data

    To parse your JSON data you could follow working-with-json-in-ios-5. This tutorial applies to iOS 5. If iOS 5 isn’t the only target you could take a look to iPhone/iOS JSON parsing tutorial resources.

    Once you have parsed JSON Data, you need to use Core Data to save them. You can find how to use Core Data in the following tutorial: core-data-on-ios-5-tutorial-getting-started. Furthermore, you can find a simple explanation (made by me) on Core data in Mapping Business Objects with Core Data in iOS.
    If you need to use table take a look at core-data-tutorial-how-to-use-nsfetchedresultscontroller

    About your Core Data model, you could create a single entity called Job (for example) with two attributes:

    • nid of type NSString (or NSNumber)
    • name of type NSString

    If you want to know something else, let me know.

    You could also try to use RestKit (that supports Core Data), but I think it could be easier to follow the two steps process I wrote.

    Finally, Core Data programming guide is your friend.

    Hope that helps.

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

Sidebar

Related Questions

Basically, what I'm trying to create is a page of div tags, each has
For some reason, after submitting a string like this Jack’s Spindle from a text
I have a string like this: La Torre Eiffel paragonata all’Everest What PHP function
I'm parsing an RSS feed that has an ’ in it. SimpleXML turns this
I'm trying to decode HTML entries from here NYTimes.com and I cannot figure out
Does anyone know how can I replace this 2 symbol below from the string
I am trying to understand how to use SyndicationItem to display feed which is
link Im having trouble converting the html entites into html characters, (&# 8217;) i
That's pretty much it. I'm using Nokogiri to scrape a web page what has
this is what i have right now Drawing an RSS feed into the php,

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.