now printing in JSON format