Check if an json array is empty

Anyone knows how to check an json array is empty?

I have gathered a few json arrays but some of them are empty, could anyone advise me how to verify if any json array is empty?


@Victor_Victory Is it in jsonObject or JsonArray format or is it in a string format, if in jsonObject or jsonArray, then Try using jsonVar.Count>0 to check if there are items using if condiion


@supermanPunch how to check if jsonObject is empty?

@Haroon_Patel (HP) To check for empty jsonObject use this:
Use following condition in if statement

Not (your_jsonObject.Count = 0)
This will give boolean true/false.
your_jsonObject.Count will give you an integer with count of no of items inside jsonObject.
I hope this would help you.