added JSON dump feature