json-object-mapper
json-object-mapper copied to clipboard
deserializeArray returns undefined when called on an empty array
trafficstars
Hi, is this intended behavior?
class Example {
hello = null;
world = null;
}
const helloJson = []
const result = ObjectMapper.deserializeArray(Order, helloJson);
// expected []
// was undefined
console.log(result);
If not, it should be fixed. If so, it should be documented, as it seems like it could cause confusion.
@jongunter see pull request #19
Can you please try 1.5.0?