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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T10:43:29+00:00 2026-05-25T10:43:29+00:00

I got a big issue when trying to parse json data in xcode. I

  • 0

I got a big issue when trying to parse json data in xcode. I have actually tried with two different parser and it still returns me a wrong json. Could anyone help in that ?

The string to parse (called jsonResp) is equal to :

{
   "error":false,
   "errorMessage":null,
   "debugMessage":null,
   "count":1,
   "list":"links",
   "data":[
      {
         "date":"Jeudi \u00e0 00:00:00",
         "type":"friend",
         "picture":"http://graph.facebook.com/22222222/picture? type=square",
         "name":"Etouda Gaudo",
         "ink_id":"1",
         "chat_id":"1",
         "count":"1",
         "last_message":"CoUcou"
      }
   ]
}

the string to parse is equal to :

NSData *jsonData = [jsonResp dataUsingEncoding:NSUTF8StringEncoding];
NSError *error = nil;
NSDictionary *dictionary = [[CJSONDeserializer deserializer]  deserializeAsDictionary:jsonData error:&error];
NSLog(@"dictionary %@", dictionary);

and then I got the following result for the NSLog of dictionary :

dictionary {
count = 1;
data =     (
            {
        "chat_id" = 1;
        count = 1;
        date = "Jeudi \U00e0 00:00:00";
        "ink_id" = 1;
        "last_message" = CoUcou;
        name = "Test name";
        picture = "http://graph.facebook.com/22222222/picture?type=square";
        type = friend;
    }
);
debugMessage = "<null>";
error = 0;
errorMessage = "<null>";
list = links;

}

I can’t figure out why the ” are missing…
Does anyone have a solution.

Thanks in advance.

  • 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-25T10:43:30+00:00Added an answer on May 25, 2026 at 10:43 am

    NSLog is just a print representation for developers to view, it is the result of the description method being called on a class instance. Quotes are only added where the item might be ambitious without them such as a string with an embedded space. To verify that the JSON was parsed correctly validate it with code.

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

Sidebar

Related Questions

Ok so this is kind of a strange issue, but I have got two
I've got a big big code base that includes two main namespaces: the engine
I got a simple setup (and a big issue): a JSP page with en
I've got somthing to parse with Gson, but Gson recognize only json object and
I got one big question. I got a linq query to put it simply
So I've got a big text file which looks like the following: <option value
I've got a big file on which I'm opening a FileInputStream. This file contains
I've got a java server (not web based, more like a big, many-threaded standalone
Ok, if i've got a binary file encoded either in little endian or big
As discussed here , I'm trying to add a WCF endpoint-extension; I've got it

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.