Skip to content

Instantly share code, notes, and snippets.

View jayrmotta's full-sized avatar
🎯
Doing the right things right

Jayr Motta jayrmotta

🎯
Doing the right things right
View GitHub Profile

Keybase proof

I hereby claim:

  • I am jayrmotta on github.
  • I am jayrmotta (https://keybase.io/jayrmotta) on keybase.
  • I have a public key ASCnCgEWWDQf4PLFLw09phEo0hnLHpgEPAPvCL3inll1fQo

To claim this, I am signing this object:

@jayrmotta
jayrmotta / gist:166470d53da13379ab56
Created May 8, 2015 21:11
AngularJS deserialization using JSOG
$httpProvider.defaults.transformResponse.splice(0, 0, function(data, headersGetter) {
if (data && headersGetter()['content-type'] === 'application/json') {
return JSOG.parse(data);
}
return data;
});