I have the following json string
{
"extractorData" : {
"url" : "http://absa.co.za/Absacoza/Indices/Absa-Exchange-Rates",
"resourceId" : "4dd52d44301ebd50db87975bf5df9711",
"data" : [ {
"group" : [ {
"absa" : [ {
"text" : "USD"
} ]
}, {
"absa" : [ {
"text" : "US Dollar"
} ]
}, {
"absa" : [ {
"text" : "*"
} ]
}, {
"absa" : [ {
"text" : "14.429"
} ],
"Buying" : [ {
"text" : "14.429"
} ]
}, {
"absa" : [ {
"text" : "14.409"
} ]
}, {
"absa" : [ {
"text" : "14.404"
} ]
}, {
"absa" : [ {
"text" : "14.8323"
} ],
"Selling" : [ {
"text" : "14.8323"
} ]
}, {
"absa" : [ {
"text" : "14.8373"
} ]
} ]
} ]
},
"pageData" : {
"statusCode" : 200,
"timestamp" : 1459675946038
}
}
I also created the following classes
Public Class Rootobject
Public Property extractorData As Extractordata
Public Property pageData As Pagedata
End Class
Public Class Extractordata
Public Property url As String
Public Property resourceId As String
Public Property data() As Datum
End Class
Public Class Datum
Public Property group() As Group
End Class
Public Class Group
Public Property absa() As Absa
Public Property Buying() As Buying
Public Property Selling() As Selling
End Class
Public Class Absa
Public Property text As String
End Class
Public Class Buying
Public Property text As String
End Class
Public Class Selling
Public Property text As String
End Class
Public Class Pagedata
Public Property statusCode As Integer
Public Property timestamp As Long
End Class
How can I extract the values for Buying and Selling using newtonsoft.json? I have been looking at and trying examples for the past 4 hours and I am still no closer to an answer. I am very new to json
please help