Method SerializeToJson SerializeToJson() Serialize this container to a JSON string. Declaration public string SerializeToJson() Returns Type Description string The container as a JSON string if the serialization is successful, null otherwise.