Fix webkit support.
Change json generator to use string rather than hard-coded type id.