Ad json serialization functionality