Modify to output the JSON.