Add JSON API to acceptable content types

closes #182