Implemented user defined json attribute filtering
Some cleanup of json_output module