0. this patch implements null fields stripping. It does exactly what was proposed and we would to have this feature in core. It is requested feature for JSON types.
1. there is no problem with patch apply and with compilation - one warning is fixed in attachments
2. code is relative small and clean, I have no any objection
3. there is necessary regress tests and related documentation.
I have no any objection - this patch is ready for commiter.