I'm trying to create an object to be returned as JSON for my REST Web Service.
I wish to get something returned like this:
{
    "message": [
    {
        "name": "whatever.bmp"
    }
    ],
    "errors": null,
    "FileInflected": 0,
    "path": "C:\thepath"
}
So, how can I change the class (eFileOutput) in C#?
How can I change the class I have below?
Currently I'm able to create similar output like this:
{
  "message": "Hello World",
  "errors": null,
  "FileInfected": 0,
  "path": "C:\bla bla..."
}
and my C# class is as follows:
[DataContract]
    public class eFileOutput
    {
        [DataMember]
        public string message { get; set; }
        [DataMember]
        public string errors { get; set; }
        [DataMember]
        public Int32 FileInfected { get; set; }
        [DataMember]
        public string path { get; set; }
    }
Tks
 
     
     
    