UiPath-ADPv1 Advanced Data Manipulation Practice Question
Which THREE of the following are valid ways to handle dynamic JSON keys when using the 'Deserialize JSON' activity?
⚠ Common exam trap
Candidates often assume dot-notation property access works for dynamic or unknown JSON keys, causing compilation or runtime binding failures when keys change.
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
✓
Access properties using indexers: jObject("DynamicKey").ToString().
When JSON keys are dynamic, static dot-notation fails. You must access fields using indexed notation (e.g., jsonObject('key')), use LINQ to filter the properties, or iterate through the JObject.Properties() collection. These methods allow you to access keys that are not known until runtime. Mastering these techniques is essential for building robust automations that can integrate with evolving APIs where key names might change or be generated dynamically.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✓
Access properties using indexers: jObject("DynamicKey").ToString().
Why this is correct
The JObject indexer allows for string-based access to properties. This is the most straightforward way to handle keys that are determined at runtime. By passing the dynamic key as a variable string to the indexer, you can retrieve values without needing the property to be defined statically in the code.
- ✓
Use the 'SelectToken' method with a JSONPath string.
Why this is correct
The SelectToken method is a powerful feature that accepts JSONPath queries. This allows you to perform complex lookups and identify keys dynamically, even if they are deeply nested. It is highly flexible and the preferred method for advanced JSON manipulation when standard indexer access is insufficient or too complex.
- ✗
Cast the JSON object to a fixed class type.
Why it's wrong here
Casting to a fixed class requires the schema to be known at compile time. This is the exact opposite of handling dynamic keys. If the JSON structure varies, the cast will likely fail or ignore the dynamic properties, making it an inappropriate solution for dynamic data requirements.
- ✓
Iterate through jObject.Properties() to find the specific key.
Why this is correct
Iterating through the Properties collection allows you to inspect every key-value pair in the object. This is essential when you need to search for a key based on criteria, such as name patterns or values. This approach is highly flexible and useful for analyzing unpredictable JSON payloads.
- ✗
Use the 'Invoke Code' activity to call a Java-based parser.
Why it's wrong here
UiPath operates in the .NET ecosystem, not Java. Calling Java code is not natively supported and would require complex, non-standard configurations. It is completely unnecessary given the powerful JSON libraries already available in the .NET environment that UiPath leverages natively for all JSON deserialization and manipulation tasks.
About these practice questions
Courseiva writes every UiPath-ADPv1 question from scratch — 276 in total, each with an explanation and a wrong-answer breakdown. None are copied from real exams or 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.