JSON activities in UiPath | deserialize json | datatypes in json | jobject in UiPath | WebAPI

preview_player
Показать описание
Hi Techies,
In this video we can learn basics about json and json activities in UiPath

***************** UiPath by Sujitha ************************

Json Activities in UiPath

JSON:
What ??
- JavaScript Object Notation
- Human readable format, i.e, key value pairs
- replacement service of xml

Json Object:
- Surrounded by { } curly braces
- Each key value pair will be separated by a "," comma
- Each key and value will be separated by a ":" semi-colon
- Keys will be in String datatype
- Values can be any of the supported datatypes
Ex:
{
"Channel" : "UiPath by Sujitha",
"Date": "26/6/2023"
}

JSON Data Types
- String
- Integer
- boolean
- arrays
- json object
- null

JSON Array

How to get a value from a jobject:

- jobject("Keyname").tostring
- cint(jobject("Keyname"))
- convert.Toboolean(jobject("Keyname"))

{
"Channel" : "UiPath by Sujitha",
"Date": "26/6/2023",
"Video Number": 100,
"Subscribed" : "True"
}

Рекомендации по теме
welcome to shbcf.ru