Ankit  Shukla

Ankit Shukla

  • NA
  • 681
  • 116.9k

Get Length of array JSON.Net

Apr 5 2017 7:36 AM
Hello,
 
   I am using code:
 
 
JArray items2 = (JArray)joResponse["records"][i]["form_values"]["a409"];
int length2 = items2.Count;
 
It works fine when there is data. but if there is now date (0), it shows error.
 
Thanks in advance.
 
 

Answers (3)