views:

9

answers:

0

I am trying to serialize a class that contains a List of other objects. I am using the json.net library. I am serializing as follows:

return Newtonsoft.Json.JsonConvert.SerializeObject(businessObject, Newtonsoft.Json.Formatting.None);

The json that is produced does serialize ok, but the List does not seem to be serialized as a json array (it lacks square brackets). Does anyone know if this is normal within json.net? I am using the .NET 2.0 version.

Thanks.