【发布时间】:2013-05-30 23:02:25
【问题描述】:
我向 Instapaper API 发出请求,它应该返回 JSON。它返回的内容接近 JSON,但不完全,如下所示:
2013-05-30 19:54:20.155 --[53078:c07] (
{
type = meta;
},
{
"subscription_is_active" = 1;
type = user;
"user_id" = --;
username = "--@gmail.com";
},
{
"bookmark_id" = 387838931;
description = "";
hash = YHwQuwhW;
"private_source" = "";
progress = 0;
"progress_timestamp" = 0;
starred = 0;
time = 1369954406;
title = "Adobe Finally Releases Kuler Color-Picking App for iPhone - Mac Rumors";
type = bookmark;
url = "http://www.macrumors.com/2013/05/30/adobe-finally-releases-kuler-color-picking-app-for-iphone/";
},
然后我该如何处理呢?即使它似乎不是有效的 JSON,我是否可以将其转换为 NSDictionary?
【问题讨论】:
-
这是我正在使用的代码:gist.github.com/anonymous/a7eee82f03131ec17b3d 我们可以通过电子邮件交谈吗? clselig @ gmail dot com
标签: ios objective-c json api instapaper