UglifyJS doesn't generate valid JSON by default; implemented a workaround where we first convert the AST into a plain object, and then use JSON.stringify.