add _flash and _validationErrors to _serialize if exist. (jsonview only)