activities
latest
false
- Información general
- Criptografía
- Base de datos
- Java
- Python
- WebAPI
Importante :
Este contenido se ha localizado parcialmente a partir de un sistema de traducción automática.
La localización de contenidos recién publicados puede tardar entre una y dos semanas en estar disponible.

Actividades de desarrollador
Última actualización 21 de abr. de 2026
Serializar JSON
UiPath.WebAPI.Activities.JSON.SerializeJson
Descripción
Serializes the given Object to a JSON string, optionally based on the custom serializer settings.
Compatibilidad de proyectos
Windows | Multiplataforma
Windows, configuración multiplataforma
- Input object - The object to be serialized to a JSON string.
Opciones avanzadas
Entrada
- Serializer settings - Custom 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 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"
}
Salida
- JSON object - The serialized JSON string.