I am retrieving JSON data. Not all parameters are returned each time and some that are returned might be a double value of 0.0.
The problem is, I thought that I could just check if the parameter was returned by using the following....
Expand|Select|Wrap|Line Numbers
- 'mydata is the parsed JSON response, value1 is a double value
- If Not mydata.value1 Is Nothing Then
- ' process
- Else
- 'ignore
- End If
I can't convert it to another format since as soon as I try to do that it will crash if mydata.value1 isn't part of the returned data.
Is there another way to determine if the parameter was returned in the response other than 'Nothing'?
Thanks
EDIT: At the moment I'm forcing the response value to be read as a string which seems to help but there has to be a proper way to do this since the true data is returned as a double