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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T00:49:41+00:00 2026-05-25T00:49:41+00:00

I need to serialize and deserialize objective-c objects into JSON to store in CouchDB.

  • 0

I need to serialize and deserialize objective-c objects into JSON to store in CouchDB. Do people have any example code for best practice for a general solution? I looked at a few JSON framework and they are stopped at the NSDictionary/NSArray level. i.e. A lot of framework will serialize and deserialize NSDictionary/NSArray into JSON. But I still have to do the work to convert NSDictionary into Objective-C objects.

To make things more complex, my Object A can have reference to an NSArray/NSDictionary of Object Bs.

My question is very similar to this question with addition of the collection requirement.

Instantiating Custom Class from NSDictionary

  • 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-25T00:49:42+00:00Added an answer on May 25, 2026 at 12:49 am

    It sounds like you’re looking for a serialization library that can let you convert objects of your own custom classes into JSON, and then reconstitute them back. Serialization of property-list types (NSArray, NSNumber, etc.) already exists in 3rd party libraries, and is even built into OS X 10.7 and iOS 5.

    So, I think the answer is basically “no”. I asked this exact question a month or two ago on the cocoa-dev mailing list, and the closest I got to a hit was from Mike Abdullah, pointing to an experimental library he’d written:

    https://github.com/mikeabdullah/KSPropertyListEncoder

    This archives objects to in-memory property lists, but as I said there are already APIs for converting those into JSON.

    There’s also a commercial app called Objectify that claims to be able to do something similar:

    http://tigerbears.com/objectify/

    It’s possible I’ll end up implementing what you’re asking for as part of my CouchCocoa library, but I haven’t dived into that task yet.

    https://github.com/couchbaselabs/CouchCocoa

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

Sidebar

Related Questions

I need to serialize and deserialize JavaScript objects to store them in a DB.
I need to serialize/de-serialize some objects into/from string and transfer them as just opaque
I need to serialize / deserialize a datetime into yyyyMMdd format for an XML
I have a small hierarchy of objects that I need to serialize and transmit
Have a bunch of classes which I need to do serialize and deserialize from/to
Is it possible to serialize or deserialize any pointer? Suppose I have a class
I have code using XmlSerializer to serialize/deserialize a data structure for persistance. I've read
I need to serialize a huge amount of data (around 2gigs) of small objects
I have a business class which I need to serialize to xml. It has
I have a simple Java class that I need to serialize to be stored

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.