Note that there are some explanatory texts on larger screens.

plurals
  1. POHow to check an object is a string or an array in ios
    primarykey
    data
    text
    <p>I am getting a response array from two different web services. But for the same methods. The problem is there 2 different web services give me bit different responses. These are those arrays</p> <pre><code>(NSMutableArray *) $2 = 0x003e9210 &lt;__NSArrayM 0x3e9210&gt;( { addedOn = "03/09/2013"; album = "Surendra Perera"; artistGroup = Female; artists = "Surendra Perera"; bpm = 0; categories = "Love Songs"; duration = "250.00"; energy = ""; era = Millenium; extroTime = "0.00"; extroType = ""; genders = ""; id = 50; imageUrl = "http://sample.com/CloudMusic/Images/sngfile.png"; introTime = "0.00"; language = Sinhala; lyrics = ""; mediaUrl = "http://sample.com/CloudMusic/Music/0476/50.mp3"; moods = Lonely; movie = ""; musicLabel = Evoke; musician = ""; sDuration = "00:04:10"; soundCodes = ""; tempos = ""; textures = ""; thumbUrl = "http://sample.com/CloudMusic/Images/sngfile.png"; title = "Mee Mai Gaha"; writer = ""; year = ""; } ) </code></pre> <p>Other one is</p> <pre><code>addedOn = "19/09/2013"; albumName = Massina; artists = ( { artistGroup = 0; description = "&lt;null&gt;"; id = 290; imageUrl = "&lt;null&gt;"; name = Daddy; noOfSongs = 0; thumbUrl = "&lt;null&gt;"; } ); duration = "260.00"; id = 2575; imageUrl = "http://sample.com/CloudMusic/Images/sngfile.png"; mediaUrl = "http://sample.com/CloudMusic/Music/0905/2575.mp3"; sDuration = "00:04:20"; songMoods = ( { id = 3; name = Sad; noOfSongs = 0; } ); thumbUrl = "http://sample.com/CloudMusic/Images/sngfile.png"; title = "Aai Kale"; year = ""; } ) </code></pre> <p>What I want to do is chek for this artists array. How can I check for this artists coming as an array or just a string. Please help me.</p> <p>Thanks</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload