UiPath-ADPv1 Advanced Data Manipulation Practice Question
A developer needs to extract a specific value from a deeply nested JSON response returned by an API. The JSON structure includes arrays and objects, and the target value is at a path like $.data.items[0].details.id. The developer wants to avoid deserializing the entire JSON into a custom class. Which approach is most efficient and maintainable in UiPath?
⚠ Common exam trap
The trap here is thinking that Deserialize JSON always requires a custom class, or that string manipulation is sufficient for extracting nested values.
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 'Deserialize JSON' activity to convert the JSON into a JObject, then use the 'Select Token' activity with the path "$.data.items[0].details.id" to retrieve the value.
Using Deserialize JSON to create a JObject and then Select Token with a JSONPath expression is the most efficient and maintainable method. It avoids custom classes and allows precise extraction from nested structures. Other methods either require unnecessary iteration, cannot handle nesting, or rely on fragile string parsing.
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 'Deserialize JSON' activity to convert the JSON into a DataTable, then use DataTable methods to query the value by column names.
Why it's wrong here
Deserializing JSON into a DataTable works only for flat, tabular structures. Nested objects and arrays cannot be directly represented in a DataTable without flattening, which loses the hierarchical relationships. This approach would fail to capture the nested path and would require extensive transformation, making it unsuitable for this scenario.
- ✗
Use string manipulation functions like Substring and IndexOf to locate the value by searching for the key 'id' within the JSON string.
Why it's wrong here
String manipulation is fragile and unreliable for parsing JSON. Keys like 'id' may appear multiple times, and the structure may change. It cannot handle escaped characters, whitespace variations, or nested arrays correctly. This approach is not maintainable and is likely to produce incorrect results, especially with dynamic JSON responses.
- ✓
Use the 'Deserialize JSON' activity to convert the JSON into a JObject, then use the 'Select Token' activity with the path "$.data.items[0].details.id" to retrieve the value.
Why this is correct
The 'Deserialize JSON' activity creates a JObject that allows querying with JSONPath. The 'Select Token' activity can then extract the value at the specified path without needing a custom class. This is efficient because it only parses the JSON once and allows direct access to nested elements, making it maintainable for complex structures.
- ✗
Use the 'Deserialize JSON' activity with the 'Deserialize JSON Array' option, then use a 'For Each' loop to iterate through the arrays and manually navigate to the target value.
Why it's wrong here
The 'Deserialize JSON Array' option is used when the root is an array, but here the root is an object. Using a For Each loop to manually navigate nested arrays and objects is cumbersome and error-prone, especially with deep nesting. It also requires additional logic to handle potential missing elements, making it less efficient and maintainable.
About these practice questions
One of 276 original UiPath-ADPv1 practice questions on Courseiva, each with a full explanation and wrong-answer analysis — not exam dumps or protected exam content. 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.