Imagine you are building a proxy (edge layer) application API endpoint which receives a JSON payload. But you don’t know the structure of this payload.
Write a function which extracts values from all JSON fields which has a type of "string" and returns them as an array of strings.
This Apple OA problem asks you to traverse an unknown JSON payload and collect the values of every field whose type is string, returning them in an array. The key idea is usually a recursive or depth-first traversal that handles nested objects and arrays, while filtering only string values. The main challenge is correctly exploring all levels of the structure without missing deeply nested fields.