{
    "style_name" : "mydefaultstyle",
    "ads" : {
        "audience_network_placement_id": "1234"
    },
    "analytics" : {
        "fb_pixel_id": "4321",
        "raw_html": "<script>alert('hello world!');</script><div class='block'></div>"
    },
    "rules" :
        [
            {
                "class": "TextNodeRule"
            },
            {
                "class": "PassThroughRule",
                "selector" : "html, head, script, body"
            },
            {
                "class": "ItalicRule",
                "selector" : "i"
            },
            {
                "class": "BoldRule",
                "selector" : "b,strong"
            },
            {
                "class": "ParagraphRule",
                "selector" : "p"
            },
            {
                "class": "HeaderTitleRule",
                "selector" : "h1"
            },
            {
                "class": "HeaderSubTitleRule",
                "selector" : "h2"
            },
            {
                "class": "HeaderRule",
                "selector" : "div.header"
            },
            {
                "class": "AuthorRule",
                "selector" : "span.author",
                "properties" : {
                    "author.name" : {
                        "type" : "string",
                        "selector" : "span"
                    }
                }
            },
            {
                "class": "CaptionRule",
                "selector" : "div.image-caption"
            },
            {
                "class": "CaptionRule",
                "selector" : "//img[@alt]",
                "properties" : {
                    "caption.default": {
                        "type": "string",
                        "selector": "img",
                        "attribute": "alt"
                    }
                }
            },
            {
                "class": "ImageRule",
                "selector" : "div.image",
                "properties" : {
                    "image.url" : {
                        "type" : "string",
                        "selector" : "img",
                        "attribute": "src"
                    },
                    "image.caption" : {
                        "type" : "element",
                        "selector" : "div.image"
                    }
                }
            },
            {
                "class": "ImageRule",
                "selector" : "div.prefix",
                "properties" : {
                    "image.url" : {
                        "type" : "string",
                        "selector" : "img",
                        "attribute": "src",
                        "prefix": "http:"
                    },
                    "image.caption" : {
                        "type" : "element",
                        "selector" : "div.image-caption"
                    }
                }
            },
            {
                "class": "ImageRule",
                "selector" : "div.suffix",
                "properties" : {
                    "image.url" : {
                        "type" : "string",
                        "selector" : "img",
                        "attribute": "src",
                        "suffix": "?suffix=yes"
                    },
                    "image.caption" : {
                        "type" : "element",
                        "selector" : "div.image-caption"
                    }
                }
            },
            {
                "class": "ImageRule",
                "selector" : "div.prefixsuffix",
                "properties" : {
                    "image.url" : {
                        "type" : "string",
                        "selector" : "img",
                        "attribute": "src",
                        "prefix" : "http:",
                        "suffix": "?suffix=yes"
                    },
                    "image.caption" : {
                        "type" : "element",
                        "selector" : "div.image-caption"
                    }
                }
            },
            {
                "class": "HeaderImageRule",
                "selector" : "div.hero-image",
                "properties" : {
                    "image.url" : {
                        "type" : "string",
                        "selector" : "img",
                        "attribute": "src"
                    },
                    "image.caption" : {
                        "type" : "element",
                        "selector" : "div.image-caption"
                    }
                }
            },
            {
                "class": "SocialEmbedRule",
                "selector" : "div.embed",
                "properties" : {
                    "socialembed.iframe" : {
                        "type" : "children",
                        "selector" : "*"
                    }
                }
            },

            {
    "class" : "FooterRule",
    "selector" : "footer"
  },
  {
    "class" : "RelatedArticlesRule",
    "selector" : "ul.op-related-articles",
    "properties" : {
      "related.title" : {
        "type" : "exists",
        "selector" : "ul.op-related-articles",
        "attribute" : "title"
      }
    }
  },
  {
    "class" : "FooterRelatedArticlesRule",
    "selector" : "ul.op-related-articles"
  },
  {
    "class" : "RelatedItemRule",
    "selector" : "li",
    "properties" : {
      "related.sponsored" : {
        "type" : "exists",
        "selector" : "li",
        "attribute": "data-sponsored"
      },
      "related.url" : {
        "type" : "string",
        "selector" : "a",
        "attribute" : "href"
      }
    }
  }
        ]
}
