Modify window processing script to handle json dict wrapped in double quotes