Didn't handle empty arrays in JSON.