I have an NString
that contains the following JSON:
str = [{"id":32,
"date_time":"02-09-2016;23:31:29",
"message":"tidal wave"},
{"id":33,
"date_time":"02-09-2016;23:33:52",
"message":"mashup"}]
I converted this to an NSArray
:
jsonObject = [NSJSONSerialization JSONObjectWithData:[str dataUsingEncoding:NSUTF8StringEncoding] options:0 error:&error];
However, when I NSLog
the jsonObject, I get the following:
jsonObject = (
{
"date_time" = "02-09-2016;23:31:29";
id = 32;
message = "tidal wave";
},
{
"date_time" = "02-09-2016;23:33:52";
id = 33;
message = mashup;
}
)
Why does the value in message, tidal wave
, have quotes around them but not mashup
?
Thanks.