请求数据时,[self.manager POST:url parameters:parameters success:^(AFHTTPRequestOperation * _Nonnull operation, id _Nonnull responseObject) {
NSLog(@"%@====%@",operation,responseObject);
NSString *responStr = [[NSString alloc] initWithBytes:[responseObject bytes] length:[responseObject length] encoding:NSUTF8StringEncoding];
NSLog(@"%@",responStr);
} failure:^(AFHTTPRequestOperation * _Nonnull operation, NSError * _Nonnull error) {
NSLog(@"error:%@",error);
}];
打印的responseObject是
responStr是<?xml version="1.0" encoding="utf-8"?>
{"message":"保存成功!","State":"1"}
请问这样的数据怎么解析?以后存进数据模型怎么存?