Add [Exposed=Window] and use toJSON

Add a description of Add [Exposed=Window] and use toJSON