using System;
using Newtonsoft.Json;
var settings = new JsonSerializerSettings { TypeNameHandling = TypeNameHandling.Objects };
var serialized = JsonConvert.SerializeObject(new NetworkAsset[] {
new User("alexsh"),
new Printer("192.168.1.2", "HP LaserJet")
}, settings: settings);