I need to add KnownType to the below code for it to serialize successfully. When I do, the generated JSON is as follows:
JSON form of Adult with 1 child: {\"
As I told you in the last question, I don't know, but some research leads me to believe that the following might achieve what you want:
var settings = new DataContractJsonSerializerSettings();
settings.EmitTypeInformation = EmitTypeInformation.Never;
var serializer = new DataContractJsonSerializer(yourType, settings);