-
-
Notifications
You must be signed in to change notification settings - Fork 403
Closed
Description
class EmptyArrayTest
{
class Data
{
public int[] array;
public string name;
}
class Response
{
public JsonData data;
}
string testJson = @"
{
""data"":
{
""array"": [],
""name"": ""testName""
}
}";
public void Run()
{
var response = JsonMapper.ToObject<Response>(testJson);
JsonMapper.ToObject<Data>(response.data.ToJson());
}
}As of latest commit (e16713d) this code generates a JsonException: Can't assign value 'name' (type System.String) to type System.Int32[]
Reactions are currently unavailable