support JSON arrays

still need to write tests