Convert a string having the JSON content to JSON object using Power Automate Microsoft Flow (MS Flow). We will work with the JSON Object and not the JSON Array.
Initialize a string variable having the JSON object as its value. I am initializing it upfront. During complex flows, you might get this value from the API response.

Add a Compose
step with Inputs having the below Expression.
json(variables('jsonString'))

The output of this Compose step is a JSON object which you can use anywhere in the flow. For this demo, I am saving the Compose output to an Object variable.

Run the flow and see the output.

If your intention is to get the value from the JSON. You can work with Parse JSON to extract the value using the schema. Generate the schema using the sample JSON payload.

In Parse JSON step, I am directly using the string variable. The output of this Parse JSON will generate the variables according to the properties defined in the schema.

I am using the variable generated by the Parse JSON in the Compose step.

Run the flow and see the output.

You must be logged in to post a comment.