只需用NSJSONSerialization解析它
示例:
var?str?=?“{ \“sb \“:\“\ \ u 3223 \ \ u 3233 \“}“;
var?json?=
NSJSONSerialization。JSONObjectWithData(str . data using encoding(nsu TF 8 string encoding,?allowLossyConversion:?真的!,?選項:?NSJSONReadingOptions。可變葉?錯誤:?零)
(json?作為!?NSDictionary)。objectForKey(“sb”)