Add text/json as a mimetype to try deserializing

Fixes #503