Empty Json File

I created the json file as mentioned in the video. But the file is empty when I open it. I can’t find out the reason.