add json support for styles