Fix issue with Json object when styling map