activities
latest
false
Importante :
A tradução automática foi aplicada parcialmente neste conteúdo. A localização de um conteúdo recém-publicado pode levar de 1 a 2 semanas para ficar disponível.
UiPath logo, featuring letters U and I in white

Atividades de Desenvolvedor

Última atualização 29 de set de 2025

Serialize JSON

UiPath.WebAPI.Activities.JSON.SerializeJson

Description

Serializes the given Object to a JSON string, optionally based on the customer serializer settings.

Compatibilidade do projeto

Windows | Multiplataforma

Windows, configuração multiplataforma

  • Input object - The object to be serialized to a JSON string.
Opções avançadas
Entrada
  • Serializer settings - Customer serializer settings to be used when serializing the object. Use this property when you want to fully control how the provided object gets serialized.
Importante:
  • Make sure you are using the latest Studio version (2025.0.161 or higher). Studio versions previous to 2025.0.161 use the Expression Editor window instead of the data mapping functionality.
  • When no data mapping is available for the Serialized settings property, you can use use the following code snippets. For more information, see Newtonsoft documentation.

    Vb.net:

    New JsonSerializationSettings With {
    	.Formatting = JsonFormatting.Indented,
    	.NullValueHandling = JsonNullValueHandling.Ignore,
    	.DefaultValueHandling = JsonDefaultValueHandling.Ignore,
    	.DateFormatHandling = JsonDateFormatHandling.IsoDateFormat,
    	.DateFormatString = "yyyy-MM-dd HH"
    }New JsonSerializationSettings With {
    	.Formatting = JsonFormatting.Indented,
    	.NullValueHandling = JsonNullValueHandling.Ignore,
    	.DefaultValueHandling = JsonDefaultValueHandling.Ignore,
    	.DateFormatHandling = JsonDateFormatHandling.IsoDateFormat,
    	.DateFormatString = "yyyy-MM-dd HH"
    }
    C#:
    new JsonSerializationSettings 
    {
    	Formatting = JsonFormatting.Indented,
    	NullValueHandling = JsonNullValueHandling.Ignore,
    	DefaultValueHandling = JsonDefaultValueHandling.Ignore,
    	DateFormatHandling = JsonDateFormatHandling.IsoDateFormat,
    	DateFormatString = "yyyy-MM-dd HH"
    }new JsonSerializationSettings 
    {
    	Formatting = JsonFormatting.Indented,
    	NullValueHandling = JsonNullValueHandling.Ignore,
    	DefaultValueHandling = JsonDefaultValueHandling.Ignore,
    	DateFormatHandling = JsonDateFormatHandling.IsoDateFormat,
    	DateFormatString = "yyyy-MM-dd HH"
    }
Saída
  • JSON object - The serialized JSON string.
  • Description
  • Compatibilidade do projeto
  • Windows, configuração multiplataforma

Esta página foi útil?

Obtenha a ajuda que você precisa
Aprendendo RPA - Cursos de automação
Fórum da comunidade da Uipath
Uipath Logo
Confiança e segurança
© 2005-2025 UiPath. Todos os direitos reservados.