FastPrepGET Parameters and a JSON Result
Problems/GET Parameters and a JSON Result

GET Parameters and a JSON Result

Adobe logoAdobe● MediumFULLTIMEOA

Updated Nov 2026

QuestionFunctionExamplesConstraints

Problem statement

Source note: Reported in an Adobe online assessment for full-time roles. The author says they made a GET request with given parameters, parsed JSON and returned a result. The report does not give the endpoint, the result field or the response format. Our version gives fixed sample responses. It asks for one string field from a flat JSON object. It also states the rules for encoding the query. Our version is about 75% the same as the reported question.

Build a GET request URL from baseUrl and the supplied [key,value] parameter rows. Keep parameter order. Encode every key and value using ASCII percent encoding: letters, digits and -._~ stay unchanged; every other character becomes %HH with uppercase hexadecimal digits. Join pairs with & and add ? only when there is at least one pair.

For this exercise, responses is a deterministic HTTP fixture table of [exactUrl,jsonBody] rows. Find the unique row for the constructed URL, parse its flat JSON object and return the string value of field. No network access is needed.

Function

getJsonResult(baseUrl: String, params: String[][], responses: String[][], field: String) → String

Examples

Example 1

baseUrl = "https://api.example.test/items"params = [["q","red blue"],["page","1"]]responses = [["https://api.example.test/items?q=red%20blue&page=1","{\"status\":\"ok\",\"value\":\"found\"}"]]field = "value"return = "found"

The space in red blue becomes %20, so the URL ends in ?q=red%20blue&page=1. Its response object maps value to found.

Example 2

baseUrl = "https://api.example.test/status"params = []responses = [["https://api.example.test/status","{ \"message\" : \"hello\" }"]]field = "message"return = "hello"

No parameters means no question mark is added. Parse the matching body and return its message string, hello.

Constraints

  • For this exercise, assume 1 <= baseUrl.length <= 200 and 1 <= field.length <= 50.
  • For this exercise, assume 0 <= params.length <= 20; every params row has exactly two strings.
  • Each parameter key is a unique ASCII identifier of length 1 to 50; its value is printable ASCII text of length 0 to 100.
  • For this exercise, assume 1 <= responses.length <= 1000; every responses row has exactly two strings.
  • Each response URL and JSON body is nonempty and at most 20000 characters long. The combined response text is at most 200000 characters.
  • baseUrl is an ASCII http:// or https:// URL with no query or fragment. Response URLs are unique and exactly one matches the constructed GET URL.
  • Every body is a valid flat JSON object with unique ASCII identifier keys and string values. Values contain printable ASCII characters other than double quote or backslash; no escapes or nested values occur.
  • The requested field is an ASCII identifier and exists in the matching response object.

Source note: Original OA task images and any included source example. The practice contract follows the rules stated in the problem and source note.

More Adobe Online Assessment questions

  • Base Unit ConversionsOA · Seen Nov 2026
  • Rotate an Array In PlaceOA · PHONE SCREEN · Seen Aug 2026
  • Top-Funded Villages and ProjectsOA · Seen Aug 2026
  • Count Parent Nodes With a Target SumOA · Seen Aug 2026
  • Largest Binary Number by ConcatenationOA · Seen Aug 2026
  • Count Events by CategoryOA · Seen Aug 2026
  • Graph M-ColoringOA · Seen Aug 2026
  • Hall of Shifting TilesOA · Seen Aug 2026
  • K-th Ancestor Subtree Preorder QueryOA · Seen Aug 2026
  • Maze ReachabilityOA · Seen Aug 2026

Similar questions at other companies

  • Polynomial CoefficientsShopify · OAShopify interview questions
  • Parse Router LogsIntuit · OAIntuit interview questions
  • Simplify a Quadratic ExpressionOpenAI · OAOpenAI interview questions
  • DNA Sequence MatchSpaceX · OASpaceX interview questions
  • Correct Apartment Bedroom CountsRamp · OARamp interview questions
  • Create New VersionCisco · OACisco interview questions
  • Order LayoutAmazon · OA
  • Validate and Parse HTTP RequestsIBM · OAIBM interview questions
  • Convert Backticked Identifiers to Camel CaseZipRecruiter · OAZipRecruiter interview questions
  • Simplified XML ValidatorAirbnb · OAAirbnb interview questions

Adobe interview experiences

  • Adobe New Grad OA: Unit Conversion and Code Review: 1 Experience
  • Adobe Web, QA, DevOps, ML Roles: 13 Experiences (Part 3 of 3)
  • Adobe SWE Interviews, Level Unknown: 25 Experiences (Part 2 of 3)
  • Adobe Interviews, Level Unknown: 38 Experiences (Part 1 of 3)
  • Adobe New Grad MTS Interview Questions: 7 Experiences
  • Adobe ML/Research Intern Interviews: 12 Experiences (Part 4 of 4)
All Adobe interview questionsSee Adobe hiring insights
Saved
class Solution {
    public String getJsonResult(String baseUrl, String[][] params, String[][] responses, String field) {
        // Write your solution here.
    }

}
Checking account…