Added function to add styles in JSON format