json: impl ToJson for almost everything