.net - C# json loop parse using json.net -
i have json file:
https://s3.amazonaws.com/minecraft.download/versions/1.7.10/1.7.10.json
i need names inside "libraries" loop. can explain me how it? if it's possible have read sub content present example here
{ "name": "org.lwjgl.lwjgl:lwjgl-platform:2.9.1", "natives": { "linux": "natives-linux", "windows": "natives-windows", "osx": "natives-osx" },
thank in advice
something might you're looking for.
list<string> nameslist = new list<string>(); dynamic json = jsonconvert.deserializeobject(jsontext); foreach (var item in json["libraries"]) { nameslist.add((string)item["name"]); }
Comments
Post a Comment