Currently the memory consumption for XML/Json preview can be quite large.
30MB json preview consumes 1.4GB memory.
Improve following things:
- cut data off after a set number of lines just like for CSV Tables
- Change message shown above data preview to indicate it's only a preview
- Add message about the data being cut off
- test for memory leak once again to be sure.