Hi could someone please help me I want to get the value of Count in the following JSON data
which parsers as
normally if there is data return it would have a count value and then a list of data but I need to validate if there is no data, i.e. if count is zero, normally, I get the data using the following code because there is a count and I would get all the data from the results list but I can't find any examples that I can get the value of count
B4X:
{"count":0,"next":null,"previous":null,"results":[]}
which parsers as
B4X:
[LIST]
[*]next: null
[*]previous: null
[*]count: 0
[*]results
[/LIST]
normally if there is data return it would have a count value and then a list of data but I need to validate if there is no data, i.e. if count is zero, normally, I get the data using the following code because there is a count and I would get all the data from the results list but I can't find any examples that I can get the value of count
B4X:
Dim root As Map = parser.NextObject
Dim Count As Map = root.Get("count")
Dim results As List = root.Get("results")