added support for nested arrays and JSONs, still need to test