- Joined
- Mar 31, 2017
- Messages
- 59
- Reaction score
- 10
Hi,
I am working on 3cx CFD dialer where I am using http Request component to get data , i want to do array count for below data so i can start the loop to make calls.
Now I want to count dbresponse array elements , like for above response it is 3 , I cannot find any CFD component apart from Execute C#code, but I am not sure how to do that.
I tried below code but it is not working.
tried above code but it is not working.
I am working on 3cx CFD dialer where I am using http Request component to get data , i want to do array count for below data so i can start the loop to make calls.
JSON:
{
"status": 1,
"dbresponse": [
{
"name": "123456",
"mobile": "9235363738",
},
{
"name": "6789",
"mobile": "0282829272",
},
{
"name": "837373",
"mobile": "2638378333",
}
],
"status_code": 200
}
I tried below code but it is not working.
C#:
var test = JObject.Parse (jresponse);
JArray items = (JArray)test["dbresponse"];
int length = items.Count;
return length
tried above code but it is not working.
Last edited:

