我试图解析Twitter API接收到的JSON字符串以获取用户时间轴。 我正在使用Jastor将JSON响应转换为目标c对象。直到我尝试分析实体对象ios Twitter API JSON解析
entities = {
hashtags =();
media = (
{
"display_url" = "pic.twitter.com/...";
"expanded_url" = "http://...";
id = ...;
"id_str" = ...;
indices =(
5,
25
);
"media_url" = "http://...";
"media_url_https" = "https://...";
sizes ={
large ={
h = 765;
resize = fit;
w = 1024;
};
medium ={
h = 448;
resize = fit;
w = 600;
};
small ={
h = 254;
resize = fit;
w = 340;
};
thumb ={
h = 150;
resize = crop;
w = 150;
};
};
type = photo;
url = "http://...";
}
);
urls =();
"user_mentions" =();
};
即使JSON是不是标准Jastor似乎解析所有的,但此块由于“(”“),”存在 一切工作正常。 你知道如何让Jastor解析这个块吗?或者我必须改变图书馆?
谢谢。
你可以发布你得到的整个JSON块吗? – ale0xB