UiPath-ADPv1 Advanced Data Manipulation Practice Question
A developer is working with a JObject variable named 'jsonObj' that represents a complex API response. Which TWO methods are valid ways to retrieve the value of a property named 'status' as a string?
⚠ Common exam trap
Candidates often try to use standard Dictionary methods like TryGetValue directly on a JObject without realizing that while JObject implements IDictionary, the return types are JTokens. Another common error is forgetting to call .ToString() on the result, as the return type is typically a JToken, not a String.
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
✓
jsonObj("status").ToString
Accessing JSON properties in UiPath using the Newtonsoft.Json library can be done through indexing or dedicated methods. Understanding these various access methods is crucial for handling dynamic JSON responses where properties might be nested or optional. Both the indexer and the SelectToken method are standard ways to interact with JObject and JToken structures in VB.NET.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✓
jsonObj("status").ToString
Why this is correct
In VB.NET, the JObject class provides an indexer that allows you to access properties by their key name. This returns a JToken object representing the property value. Calling the ToString method on this JToken effectively converts the underlying JSON value into its string representation for use in the UiPath workflow.
- ✓
jsonObj.SelectToken("status").ToString
Why this is correct
The SelectToken method is a powerful way to query JSON using a path-like syntax. It is particularly useful for deep-nested structures but works perfectly for top-level properties like 'status'. Like the indexer, it returns a JToken which can then be converted to a string using the standard ToString method.
- ✗
jsonObj.Get("status")
Why it's wrong here
There is no 'Get' method defined for the JObject class in the Newtonsoft.Json library. This is a common point of confusion for developers who are used to other JSON libraries or different programming languages that use 'Get' as a standard accessor. Using this will result in a compilation error in UiPath Studio.
- ✗
jsonObj.Property("status").Value.ToString
Why it's wrong here
While JObject has a Property method, it returns a JProperty object, and accessing the Value property of that object is more verbose than necessary. Furthermore, if the property does not exist, this chain would throw a NullReferenceException. It is less safe and less common than using the standard indexer or SelectToken methods.
- ✗
jsonObj.Parse("status")
Why it's wrong here
The Parse method is a static method used to create a JObject from a raw JSON string, not to retrieve a value from an existing object. Attempting to call it on an instance with a property name as the argument is logically incorrect. This would fail because 'status' is not a valid JSON-formatted string.
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.