I've experienced this json/RESTART bug occasionally, it always occurs at first start for the day, and is more likely when multiple sketches are open. (Im not sure if I've ever seen it with nly one window open)
I've found it's best to select cancel in the restart dialogue, close & restart the IDE. If it restarts with the menu bar missing I just restart again.