iOS count JSON items -


i want count json items obtained jsonobjectwithdata.

id jsonobjects = [nsjsonserialization jsonobjectwithdata:receiveddata options:nsjsonreadingmutablecontainers error:nil];  nslog(@"%@",jsonobjects); 

json return

{ detail = "\u0e19\u0e31\u0e01\u0e28\u0e36\u0e01\u0e29\u0e32"; email = "krol3ong8gs@gmail.com"; id = 1; name = "\u0e13\u0e23\u0e07\u0e04\u0e4c\u0e0a\u0e31\u0e22 \u0e08\u0e34\u0e19\u0e14\u0e32\u0e1b\u0e23\u0e30\u0e01\u0e32\u0e22"; password = 9670f4c03767a65db8067d2b5cf2e6e4; picture = "thumbnails_2012-10-14_23-56-59.jpg"; username = asskyo001; } 

use this

nsdictionary  *jsonobjects = [nsjsonserialization jsonobjectwithdata:receiveddata options:nsjsonreadingmutablecontainers error:nil]; nslog(@"%d", [jsonobjects count]); 

Comments

Popular posts from this blog

android - getbluetoothservice() called with no bluetoothmanagercallback -

sql - ASP.NET SqlDataSource, like on SelectCommand -

ios - Undefined symbols for architecture armv7: "_OBJC_CLASS_$_SSZipArchive" -