{"issue":{"state":"open","pull_request":{"diff_url":null,"html_url":null,"patch_url":null},"milestone":null,"user":{"avatar_url":"https://secure.gravatar.com/avatar/b2896eaafd7ead3a3063a9162aa1dcce?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"b2896eaafd7ead3a3063a9162aa1dcce","url":"https://api.github.com/users/Pyrolistical","login":"Pyrolistical","id":463642},"assignee":null,"updated_at":"2011-11-14T09:27:42Z","labels":[],"closed_at":null,"comments":1,"url":"https://api.github.com/repos/andyet/fermata/issues/11","body":"Instead of forcing the user to choose `fermata.json(..)` or `fermata.raw(..)` only decode response body as json only if `XMLHttpRequest.getResponseHeader(\"Content-Type\") == \"application/json\"`.  Otherwise return response body as raw.","html_url":"https://github.com/andyet/fermata/issues/11","title":"Simplify API by not having user choose json or raw plugin upfront","number":11,"id":2228430,"created_at":"2011-11-14T09:20:22Z"},"action":"created","comment":{"user":{"avatar_url":"https://secure.gravatar.com/avatar/b2896eaafd7ead3a3063a9162aa1dcce?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"b2896eaafd7ead3a3063a9162aa1dcce","url":"https://api.github.com/users/Pyrolistical","login":"Pyrolistical","id":463642},"updated_at":"2011-11-14T09:27:42Z","url":"https://api.github.com/repos/andyet/fermata/issues/comments/2728151","body":"You can then have a new static constructor `var site = fermata(\"http://youraccount.example.com\");`","id":2728151,"created_at":"2011-11-14T09:27:42Z"}}