Power Automate (WDL) function
json — Power Automate (WDL) function reference
Parse a JSON string to an object.
Syntax
wdl
json(value)
Examples
wdl
json(triggerBody())
→ An object
Needed when the HTTP action's body arrives as a raw string rather than a parsed object.
wdl
json(outputs('HTTP_Request')?['body'])→ A parsed object
wdl
json('{"key":"value"}')→ {"key":"value"} as an object
Common mistakes & gotchas
- Use after an HTTP action whose body is a string of JSON.
- json() only accepts well-formed JSON text — a stray trailing comma throws an InvalidTemplate "unexpected token" error.
- If the source action already parsed the response into an object (e.g. an HTTP action with a response schema defined), calling json() on it again throws because the input is not a string.
Related Workflow Definition Language functions
From Type conversion