Support for snippets, including flat JSON