UiPath-ADPv1 API Automation Practice Question
A developer is using the UiPath HTTP Request activity to send a POST request to an API that expects a JSON payload. The developer has a Dictionary(Of String, Object) variable named payloadDict containing the data to send. Which approach correctly serializes the dictionary and configures the request?
⚠ Common exam trap
Watch out — candidates often confuse serialization with deserialization, or assuming the HTTP Request activity automatically serializes complex objects without explicit conversion.
Answer choices
Why each option matters
Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.
Correct answer & explanation
✓
Use the Serialize JSON activity on payloadDict to get a JSON string, then set the HTTP Request activity's Body property to that string and the Content-Type header to "application/json".
To send a dictionary as JSON, you must serialize it into a string using the Serialize JSON activity. Then, set the HTTP Request's Body to that string and include the Content-Type header as "application/json". This ensures the API receives a properly formatted JSON payload and interprets it correctly.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✓
Use the Serialize JSON activity on payloadDict to get a JSON string, then set the HTTP Request activity's Body property to that string and the Content-Type header to "application/json".
Why this is correct
Serialize JSON converts the dictionary into a valid JSON string. Setting the Body property to this string and specifying the Content-Type header as "application/json" ensures the API receives the payload in the expected format. This is the standard method for sending JSON data in UiPath.
- ✗
Set the Body property directly to payloadDict and set the Content-Type header to "application/json".
Why it's wrong here
The Body property expects a string or a type that can be serialized automatically. Passing a Dictionary directly may not serialize correctly to JSON; it might call ToString() and produce an invalid payload. Explicit serialization is required to ensure proper JSON formatting.
- ✗
Use the Serialize JSON activity on payloadDict and set the Body property to the result, but leave the Content-Type header unset.
Why it's wrong here
Without the Content-Type header set to "application/json", the API may not parse the body as JSON. Many APIs require this header to interpret the payload correctly. Omitting it can lead to 415 Unsupported Media Type errors or incorrect parsing.
- ✗
Use the Deserialize JSON activity on payloadDict and set the Body property to the result.
Why it's wrong here
Deserialize JSON is used to convert a JSON string into an object, not the other way around. Using it on a dictionary would not produce a JSON string; it would likely throw an error because the input is not a string. Serialization is needed to convert the dictionary to JSON.
About these practice questions
This UiPath-ADPv1 question is part of Courseiva's 276-question bank — original exam-style content with full explanations and wrong-answer analysis, never real exam questions or exam dumps. Learn why practice questions differ from exam dumps →
JA
Written and reviewed by Johnson Ajibi, MSc IT Security
Senior Network & Security Engineer · founder of Courseiva
Last reviewed September 2026 · checked against the official UiPath exam blueprint
This UiPath-ADPv1 practice question is part of Courseiva's free UiPath certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the UiPath-ADPv1 exam.