The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.
{
"parse_mime_type": {
	"application/xhtml;q=0.5":         ["application", "xhtml", {"q": "0.5"}],
	"application/xhtml;q=0.5;ver=1.2": ["application", "xhtml", {"q": "0.5", "ver": "1.2"}]
},

"parse_media_range": {
	"application/xml;q=1"           : [ "application", "xml", { "q": "1" } ],
	"application/xml"               : [ "application", "xml", { "q": "1" } ],
	"application/xml;q="            : [ "application", "xml", { "q": "1" } ],
	"application/xml ; q="          : [ "application", "xml", { "q": "1" } ],
	"application/xml ; q=1;b=other" : [ "application", "xml", { "q": "1", "b": "other" } ],
	"application/xml ; q=2;b=other" : [ "application", "xml", { "q": "1", "b": "other" } ],
	" *; q=.2": [ "*", "*", { "q": ".2" } ]
},

"quality": [
	{
		"accept": "text/*;q=0.3, text/html;q=0.7, text/html;level=1, text/html;level=2;q=0.4, */*;q=0.5",
		"testcases": {
			"text/html;level=1" : 1.0,
			"text/html"         : 0.7,
			"text/plain"        : 0.3,
			"image/jpeg"        : 0.5,
			"text/html;level=2" : 0.4,
			"text/html;level=3" : 0.7
		}
	},
	{
		"accept": "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2",
		"testcases": {
			"text/plain"        : 0.2
		}
	}
],

"best_match": [
	{
		"supported": [ "application/xbel+xml", "application/xml" ],
		"testcases": [
			[ "application/xbel+xml",      "application/xbel+xml", "direct match" ],
			[ "application/xbel+xml; q=1", "application/xbel+xml", "direct match with a q parameter" ],
			[ "application/xml; q=1",      "application/xml",      "direct match of our second choice with a q parameter" ],
			[ "application/*; q=1",        "application/xml",      "match using a subtype wildcard" ],
			[ "*/*",                       "application/xml",      "match using a type wildcard" ]
		]
	},
	{
		"supported": [ "application/xbel+xml", "text/xml" ],
		"testcases": [
			[ "text/*;q=0.5,*/*; q=0.1",               "text/xml", "match using a type versus a lower weighted subtype" ],
			[ "text/html,application/atom+xml; q=0.9", null,      "fail to match anything" ]
		]
	},
	{
		"supported": [ "application/json", "text/html" ],
		"testcases": [
			[ "application/json, text/javascript, */*", "application/json", "common AJAX scenario" ],
			[ "application/json, text/html;q=0.9",      "application/json", "verify fitness ordering" ]
		]
	},
	{
		"supported": [ "image/*", "application/xml" ],
		"testcases": [
			[ "image/png", "image/*", "match using a type wildcard" ],
			[ "image/*",   "image/*", "match using a wildcard for both requested and supported " ]
		]
	}
]
}