Display JSON when print button is clicked