Added toJSON test within array