Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

problem with '\n' when encoding from NSDictionnary to Json #10

Closed
ghost opened this issue May 14, 2011 · 1 comment
Closed

problem with '\n' when encoding from NSDictionnary to Json #10

ghost opened this issue May 14, 2011 · 1 comment

Comments

@ghost
Copy link

ghost commented May 14, 2011

Hi there,

first of all, thank you so much for your wonderful and very useful tool.
I'm getting a weird error though.
I'm encoding a dictionnary to send something to a server.
Let say I have a NSDictionnary with 1key/value :
"message" : "\n test"
When I send this message to the server, I get a 400 error code. When analysing the request sent to the server, it seems like the '\n' is not treated well by the function [CJSONSerializer serializer] serializeObject:], the dictionnary mentionned earlier is serialized into this :
"messaget":"
test"

Do you have any idea why ?

@ghost
Copy link
Author

ghost commented May 15, 2011

Sorry for this message,
Doing some research this morning, I found this note :
navellabs@f7915e1
Turned out, I didn't update your projet recently.
Sorry for the inconvenience, I'll do some research first now !

@schwa schwa closed this as completed Jul 27, 2011
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant