I have a .NET project. I'm using the JSON.NET library. I need to use this library to parse some JSON. My JSON looks like this:
{"1":"Name 1","2":"Name 2"}
The object is really just a list of key/value pairs. I am trying to figure out how to use JSON.NET to 1) parse this JSON and 2) loop through the key/value pairs. Is there a way to do this? If so, how?
The only thing I see is de-serializing into a strongly-typed object.
Thank you so much!
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…