CSharp · Console
using System;
using System.Data;
using Newtonsoft.Json;
public class Program
{
public static void Main()
{
var json = @"
{""artists"":
[
{""Name"":""artsit"",
""URL"":""www.example.com"",
""Desc"":""very nice artist"",
""Rating"":5,
""NSFW"":false,
""Tags"":[""good"",""epic""],
""fav"":true
},
{""Name"":""another artist"",
""URL"":""www.test.net"",
""Desc"":""super cool"",
""Rating"":3,
""NSFW"":true,
""Tags"":[""digital"",""commissions""],
""fav"":false
}
]
}
";
var dt = JsonConvert.DeserializeObject<RootObject>(json).artists;
dt.AsEnumerable().Select(r => r.ItemArray).Dump();
}
}
class RootObject
{
public DataTable artists;
}