auto json content-type, closes #11