Use JSON object to console for debug instead of var_dump to output