I am trying to find a path of a JSON value. Consider the following JSON:
{
"car": {
"type": [{
"sedan": {
"make": "honda",
"model": "civics"
}
},
{
"coupe": {
"make": "ford",
"model": "escort"
}
}]
}
}
How can I get the path of the value "honda"? I'm looking to find something like this...
car_type_0_sedan_make_honda
Does JSON.NET support this? I see that there is a JToken.Path property but it is currently not available. http://json.codeplex.com/workitem/24136