file upload and json serrializer