Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
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[]
The text was updated successfully, but these errors were encountered:
Fixed by #115
Sorry, something went wrong.
No branches or pull requests
As of latest commit (e16713d) this code generates a JsonException: Can't assign value 'name' (type System.String) to type System.Int32[]
The text was updated successfully, but these errors were encountered: