I am needing the first item in the array of object b in this json.
{
"error":[],
"result":{
"XXRPXXBT":{
"a":[
"0.000084280",
"123",
"123.000"
],
"b":[
"0.000084120",
"24263",
"24263.000"
],
"c":[
"0.000084140",
"772.40225814"
],
"v":[
"1002684.00590349",
"1081301.61838716"
],
"p":[
"0.000085783",
"0.000085799"
],
"t":[
731,
866
],
"l":[
"0.000083420",
"0.000083420"
],
"h":[
"0.000086610",
"0.000086720"
],
"o":"0.000086300"
}
}
}
Could someone please tell me how the class properties would look to get to that level. I have tried a json deserialization with a string for result but it fails on the convert.
I don't have to have all the values just the first item in the b array.
This is what I had done:
TestResponse deserializedKrakenResult = JsonConvert.DeserializeObject<TestResponse>(json);
public class TestResponse
{
public string[] result { get; set; }
}
and
public class TestResponse
{
public object[] result { get; set; }
}
and
public class TestResponse
{
public string result { get; set; }
}
These were done just to get it to parse.