Add listener to print JSON to Pretty Print