次のような JSON 文字列を作成しています。
{ "request_type":"send_string", "security_level":0, "device_type":"ios", "blob":{"string":"blah"}"}
これは私がしたことです:
NSDictionary *requestData = [NSDictionary dictionaryWithObjectsAndKeys:
@"send_string",@"request_type",
[NSNumber numberWithInt:0],@"security_level",
@"ios",@"device_type",
//No Email Provided, This is just for testing
blobData,@"blob",
nil];
NSData *JSONRequestData = [NSJSONSerialization dataWithJSONObject:requestData options:kNilOptions error:&error];
これを NSLog で出力すると、
{"security_level":"0","request_type":"send_string","device_type":"ios","blob":{"string":"hello"}}
それは順不同です...何が得られますか?