I deserialize a JSon string that holds an object with an array of subobjects.
The current working solution looks like this:
var definition = new { systems = new subclass[0] };
var ret = JsonConvert.DeserializeAnonymousType(source, definition);
public class subclass
{
public long id;
}
Is there a way to replace the subclass with another anonymous one?
I tried using the following, but only get a compiler error:
var definition = new { constellations = new{ id=0L }[0] };