made mongodb serialize as json when the header says that it's json