AmpersandJS / ampersand-sync

Provides sync behavior for updating data from ampersand models and collections to the server.
http://ampersandjs.com
MIT License
20 stars 28 forks source link

parse response as json if accept subtype or suffix is json #72

Closed lukekarrys closed 9 years ago

lukekarrys commented 9 years ago

I have an app that uses accept: 'application/hal+json' which I think should be parsed as JSON as well.

Used media-type for the parsing.

wraithgar commented 9 years ago

lgtm, may want to consider locking the media-type version since it's not semver 1.0.0

kamilogorek commented 9 years ago

:+1: