Support resizing window when json is received