reject null from rest json input