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

Error in serializing NSNumber #176

Open
mahmoud-khalifa opened this issue May 23, 2015 · 2 comments
Open

Error in serializing NSNumber #176

mahmoud-khalifa opened this issue May 23, 2015 · 2 comments

Comments

@mahmoud-khalifa
Copy link

I'm getting EXC_BAD_ACCESS (code=EXC_I368_GPFLT) when trying to convert dictionary that contains NSNumber in method called jk_encode_add_atom_to_buffer in the following line
void *objectISA = (JK_EXPECT_F(workAroundMacOSXABIBreakingBug)) ? NULL : *((void **)objectPtr);

here is sample code i tried
NSDictionary *dict = @{@"StringKey":@"Value", @"NumberKey" : @5}; NSString* reqString = [dict JSONStringWithOptions:JKSerializeOptionNone error:&jsonError];

is there is any hint why I'm getting this error?

@danielStokowski
Copy link

I've repaired this problem in my fork: https://github.com/danielStokowski/JSONKit. Let me know if it helped.

@jcbertin
Copy link

Or you can try my fork: https://github.com/jcbertin/JSONKit which should handle tagged pointers correctly.

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

3 participants