json cleanup. include properties only if present