getting boolean or string from ASP.NET Web API via IOS -
i can value in json format function:
nsmutablearray *jsonarrayclass = [nsjsonserialization jsonobjectwithdata:data options:kniloptions error:&error];
but have no idea how string value or boolean value. have validation return data type. not json.
the raw value shown on flidder looks (id00001 return string):
http/1.1 200 ok cache-control: no-cache pragma: no-cache content-type: application/json; charset=utf-8 expires: -1 server: microsoft-iis/7.5 x-aspnet-version: 4.0.30319 x-powered-by: asp.net date: mon, 07 apr 2014 17:15:28 gmt content-length: 9 "id00001"
try
[[nsstring alloc] initwithdata:data encoding:nsutf8stringencoding];
Comments
Post a Comment