Problem with the Deserialize JSON Array activity

Hi @amanda.gondim

LLM Generated Answer:

It sounds like you’re using Deserialize JSON Array on a JSON object instead of a JSON array.


Quick explanation:

  • Deserialize JSON Array expects something like this:
[
  { "id": 1, "name": "John" },
  { "id": 2, "name": "Jane" }
]
  • But your API is likely returning this instead:
{
  "users": [
    { "id": 1, "name": "John" },
    { "id": 2, "name": "Jane" }
  ]
}

In the second case, you’re dealing with a JSON object that contains an array as one of its properties.


Fix:

You should first use Deserialize JSON (not the Array one) and then extract the array part using:

yourJObject("users")