setting output format to JSON