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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T01:36:20+00:00 2026-05-26T01:36:20+00:00

Im interacting with JSON, for get it works ok, But with the post, I

  • 0

Im interacting with JSON, for “get” it works ok,

But with the “post”, I have an error as the dictionary objects are surrounded with double quotes “”

and for the web service, i get an error for the double quotes,
the problem is that if i use a dot to indicate a decimal point then the double quotes appear,

NSMutableDictionary *dicto = [[NSMutableDictionary alloc]init];

[dicto setObject:@"-33.82007932" forKey:@"Latitude"];

[dicto setObject:@"151.1850004" forKey:@"Longitude"];
[dicto setObject:@"10728" forKey:@"TransmissionAreaId"];
[dicto setObject:@"[11278,10747,10728,11503]" forKey:@"OtherTransmissionAreaIds"];

this is the log

2011-10-10 17:28:47.265 MySwitch[14632:707] the dictionary {
Latitude = “-33.820080”;
Longitude = “151.1850004”;
OtherTransmissionAreaIds = “[11278,10747,10728,11503]”;
TransmissionAreaId = 10728;
}

so the TransmissionAreaId = 10728

appears ok, but if I test and use a decimal point ie: TransmissionAreaId = 10728.01

then i get the double quotes,

So how can i get rid of the double quotes??

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-26T01:36:20+00:00Added an answer on May 26, 2026 at 1:36 am

    Whatever the value you display in NSLog, it displays the value as string. Its a nature of NSLog that it adds double-quotes(") around the values if they contain special characters other than alphanumeric values.

    NSLog does this when it displays objects such as arrays and dictionaries. So, you won’t see this behavior when you print just a string or float value directly in NSLog.

    And, you have nothing to do with that than stop worrying!

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

Sidebar

Related Questions

Basically my app is interacting with a web service that sends back a weird
I am trying to get my datatable to take a POST JSON output from
With the Google Contacts API, you can GET contact information using JSON, but is
Does the model binder not suport arrays of JSON objects? The code below works
I have a route for example POST /interaction.json where the client posts a new
I've read through all of the Spring 3 Web docs: http://static.springsource.org/spring/docs/3.0.x/spring-framework-reference/html/spring-web.html but have been
Often I find myself interacting with files in some way but after writing the
I am interacting with a web server using a desktop client program in C#
my application uses json-1.6.1 which works fine, also I can do gem install json
I'm attempting to build a gem for interacting w/ the Yahoo Placemaker API but

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.