Modification following the comment on PR #100. I've also fixed a minor issue: the json parser was never closed, so things like the symbol table and internal buffers were never released.
Don't provide an initial capacity to the array list by using total_ro…
…ws, since it indicates the total row in a view, not the result.
Ensure parser is closed at the end.