Hi there
This might be a cheeky ask but I know there are some clever programmers on this forum so thought I would ask here before I pull all my remaining hair out.
I have done some work with json, deserializing with Newtonsoft in vb.net so I'm not completely new to this. But I'm definitely an amateur. Please forgive me if my use of terminology is wrong.
I have a little project on at the momentat home and the json that is returned has me stumped. Basically there are nested arrays which can vary in size and I need to read the data from items in these arrays. I don't know how to determine the size of the arrays and besides, I dont know how to loop through the arrays to get to what I want.
An example of the url returning the json is:
https://chargepoints.dft.gov.uk/api/...t/json/limit/8
You can see that the ChargeDevice array contains 8 items (this can vary in size) Within each of these 8 there is another array called Connector which can also vary in size.
As an example, I want to be able to read in the ConnectorType items in each othe arrays: eg ChargeDevice►3►Connector►1►ConnectorType
Thanks for your help.
This might be a cheeky ask but I know there are some clever programmers on this forum so thought I would ask here before I pull all my remaining hair out.
I have done some work with json, deserializing with Newtonsoft in vb.net so I'm not completely new to this. But I'm definitely an amateur. Please forgive me if my use of terminology is wrong.
I have a little project on at the momentat home and the json that is returned has me stumped. Basically there are nested arrays which can vary in size and I need to read the data from items in these arrays. I don't know how to determine the size of the arrays and besides, I dont know how to loop through the arrays to get to what I want.
An example of the url returning the json is:
https://chargepoints.dft.gov.uk/api/...t/json/limit/8
You can see that the ChargeDevice array contains 8 items (this can vary in size) Within each of these 8 there is another array called Connector which can also vary in size.
As an example, I want to be able to read in the ConnectorType items in each othe arrays: eg ChargeDevice►3►Connector►1►ConnectorType
Thanks for your help.
Comment