Using the log
If you want to debug your code via logs, simply insert a code block and type the following statement:
log.info("..........");
What goes in quotes is the information you want to purge, for example
log.info("JSON DATA : " + json.tostring());