how to display no structure jsonString to NSTextView with structure dispay

if I have a json string like this:


{"api":"com.taobao.mtop.deliver.getaddresslist","v":"2.0","ret":["SUCCESS::调用成功"]}

I want to display it in NSTextView like this:


{
"api": "com.taobao.mtop.deliver.getaddresslist",
"v": "2.0",
"ret": [
"SUCCESS::调用成功"
]
}

how can I do it with Objective-C in my mac app?


Source: json

Leave a Reply