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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T20:40:06+00:00 2026-06-08T20:40:06+00:00

I´ve been trying to use jsonkit for a object to string convertion. My SerializedClasses

  • 0

I´ve been trying to use jsonkit for a object to string convertion. My SerializedClasses helper converts a NSMutableArray CellList into a JSONString (ssd log). This goes perfectly. Then I put the resultant string in a dictionary and then try to get the jsonstring dictionary (ssd2 log). The code and output follow.

    -(NSDictionary*)toDictionary{ 
NSString *myCellListString = [SerializedClassesHelper cellListToString:cellList];
NSLog(@"ssd:%@",myCellListString);

    NSDictionary *myDictionary = [NSDictionary dictionaryWithObjectsAndKeys:
                              [[NSString alloc] initWithFormat:@"%@",myCellListString],@"cellList",
                              [[NSString alloc] initWithFormat:@"%d",weaponType],@"weaponType",
                              nil];

for (NSString *eachString in myDictionary) {
    [eachString release];
}
NSLog(@"ssd2:%@",[myDictionary JSONString]);
return myDictionary;
}

Output:

ssd:[{"col":"4","row":"2"},{"col":"4","row":"2"}]
ssd2:{"weaponType":"0","cellList":"[{\"col\":\"4\",\"row\":\"2\"},{\"col\":\"4\",\"row\":\"2\"}]"}

Why are all those backlashes appearing in the middle of the cellList string?

  • 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-08T20:40:07+00:00Added an answer on June 8, 2026 at 8:40 pm

    They are escaping the quote characters, because they are present inside a string. Without them, it would tell the parser to keep exiting and entering the string, and you’d end up with invalid syntax.

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

Sidebar

Related Questions

I have been trying to use one View for updating an object and all
I have been trying to use the HTML Agility Pack to parse HTML into
I have been trying to use the step() method on Date object to retrieve
i`ve been trying o use fscanf to read the an input file on my
I've been trying to use mongo with some data imported, but I'm not able
Hi ive been trying to use System.Security.Cryptography to encrypt and decrypt a file but
I have been trying to use date_format , however as far as I know,
I've been trying to use buildExpressionParser to parse a language, and I almost have
I've been trying to use a List<> of a Model.Person that I have inside
I have been trying to use array_unique to remove duplicates from the search results

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.