serialize only valued fields in captive form