TypeError: Object of type ImageFieldFile is not JSON serializable 原因:直接使用了图片类型,而没有使用图片的路径 解决: 判断如果数据库中有空的值就直接是空哦!