Fixes missing json dependency

This silly dependency was missed when extracting the window open methods.