I am using Newtonsoft within .net to parse json content and wish I had actually studied this better. I create an obj to parse the string text by listing all the children into a list of JTOkens and then grab the individual values from each JProperty. But now I need to capture a list of values and not sure how to that.
Dim jobj As JObject = JObject.Parse(msg.Body.ToString())
Dim results As List(Of JToken) = jobj.Children().ToList
For Each item As JProperty In results
item.CreateReader()
If item.Name = "id" Then
statid = item.Value
End If
etc...
But now I find the following item within the object and need all the "values" and "Tags"
{"results":
{
{
"language": {
"value": "ja"
},
"matching_results": [
{
"value": "iPhone5",
"tag": "JOE"
},
{
"value": "iPhone5",
"tag": "BOB"
}
],}