I would like to return this json response
{
    "Type": "testing",
    "Errors": {
        "InputOne": [
            "The input one is accepted"
        ],
        "InputTwo": [
            "The input two is accepted"
        ]
    }
}
But after trying a few rounds all I got was this
{
    "Type": "testing",
    "Errors": {
        "InputOne": "The input one is accepted",
        "InputTwo": "The input two is accepted"
    }
}
May I know what am I missing here?
These are my code
public string Type { get; set; }
public ErrorClass Errors { get; set; }
public class ErrorClass
{
  public object InputOne { get; set; }
  public object InputTwo { get; set; }
}
Thanks in advance!
 
     
    