Added code to include the necessary information in the JSON output