Recursive OL parser for transforming JSON into 2D arrays