Could I query Json via a string?

Mar 25, 2014 at 12:41 AM
Let's say this works fine:
(string)jsonData["items"][0]["fields"]["lastName"]
Could I somehow come up with a method that looks like this:
QueryJson("/items/{0}/fields/firstName")
I've tried to do this by splitting the query string on the slash, then iterating down into the object (converting the "{0}" to an int), but I get type mismatches between JArray and JObject.

My ultimate goal is to be able to query the Json via a stored string, and nothing more. Possible?