Fix bug render content type to json, ref #64