using System;
using System.Xml.Serialization;
using System.Linq;
using Newtonsoft.Json;
using Newtonsoft.Json.Linq;
public class Program
{
public static void Main()
var token = JToken.Parse("{ \"a\": true }");
var wrapper = new {
A = 1,
B = "some value",
С = DateTimeOffset.Now,
J = token
};
JsonConvert.SerializeObject(wrapper).Dump();
}