List<Embed> embeds = new List<Embed>
{
new Embed
{
fields = new List<Field>
{
new Field
{
name = "1",
value = "2",
inline = true
}
}
}
};
var SerialResult = JsonConvert.SerializeObject(embeds, Formatting.Indented);
public void SerialJson()
{
.....
....
var SerialClass1Json = JsonConvert.SerializeObject(SerialClass1);
File.WriteAllText(@"C:\Users\Admin\Desktop\Settings1.json", SerialClass1Json);
}