Power Automate Parse JSON: Schema, Nulls and Errors (Tested)

The Power Automate parse json action reads JSON text and turns each field into dynamic content you can pick in later steps. Give it the JSON in Content and a matching Schema, and fields like Customer and Budget show up as tokens.

In this tutorial, we’ll parse a request record, generate the schema from a sample, allow null values, use the parsed fields in math, and fix every validation error I hit. I tested each case in October 2026.

Power Automate Parse request JSON action with Content set to Outputs and a schema with Budget as integer
Parse JSON: Content is the JSON, Schema describes its fields

What Does Parse JSON Do in Power Automate?

JSON is the text format most APIs and many connectors use, like {"Customer":"Megan Bowen","Budget":1250}. Power Automate can’t offer its fields as dynamic content until it knows their names and types.

The schema is that description. Parse JSON checks the content against it, then gives you a token per field. If the content doesn’t match, the action fails with ValidationFailed.

You don’t always need it. For one quick value, an expression like json(text)?['Customer'] works without a schema. My guide to creating an array of objects shows json() in action.

How Do You Use Parse JSON Step by Step?

My demo flow stores this sample in a Compose action named Sample request text:

{"Title":"Website redesign","Customer":"Megan Bowen","City":"Seattle","Budget":1250,"DueDate":null}
  1. Select the plus sign > Add an action, search for parse json, and pick Parse JSON under Data Operation.
  2. In Content, pick the Outputs of the Compose (or your HTTP body).
  3. Below Schema, select Use sample payload to generate schema.
  4. Paste one realistic sample of your JSON and select Done.
  5. Check the generated schema, fix any types (next section), then save and test.

Use a sample with a real value in every field, then allow null by hand for fields that can be empty, as the next section shows.

How Do You Allow Null Values in the Schema?

Change the field’s type to a list that includes null. This is the schema my demo used:

{
  "type": "object",
  "properties": {
    "Title": { "type": "string" },
    "Customer": { "type": "string" },
    "City": { "type": "string" },
    "Budget": { "type": "integer" },
    "DueDate": { "type": ["string", "null"] }
  }
}
Parse JSON schema in Power Automate with DueDate type string or null and the Use sample payload link
DueDate accepts a string or null

With "type": "string" only, the same content failed, because DueDate was null:

Power Automate Parse JSON ValidationFailed error: schema validation failed for content with DueDate null
A null field against a string-only schema fails validation
Invalid type. Expected String but got Null.

With ["string", "null"], it succeeded and DueDate came through blank. Blank fields need care later too; see the Power Automate condition if blank.

How Do You Use the Parsed Fields?

Once the schema is set, the fields appear in the dynamic content list under Parse JSON. In expressions, read them from the body:

body('Parse_request_JSON')?['Customer']

It returned Megan Bowen. Because the schema says Budget is an integer, math works directly. add(body('Parse_request_JSON')?['Budget'], 100) returned 1350:

Power Automate raw output with ParsedCustomer Megan Bowen and BudgetPlus100 1350 from Parse JSON fields
Parsed fields in use: text and math

To keep a parsed value for later steps, store it with the Set variable action.

How Do You Parse a JSON Array?

Use a schema with "type": "array" and describe each item under items:

{ "type": "array", "items": { "type": "object", "properties": { "Title": { "type": "string" }, "Status": { "type": ["string", "null"] } } } }

My six-row array parsed fine, and length(body('PJ_array')) returned 6. Loop over the output with Apply to each, or narrow it first with Filter array.

Why Does Parse JSON Fail with ValidationFailed?

The content doesn’t match the schema. Open Show raw outputs on the failed action to see the exact reason. These are the ones I hit:

Content problemError message
A field is nullInvalid type. Expected String but got Null.
A required field is missingRequired properties are missing from object: Customer.
Number sent as text “300”Invalid type. Expected Integer but got String.
Decimal 1250.5 for an integerInvalid type. Expected Integer but got Number.

Fixes: allow null as shown above, remove the field from required, or loosen the type. Changing Budget to "type": "number" accepted 1250.5.

For a number that arrives as text, you can also convert it before parsing. My guide on how to convert a string to an integer shows int().

What If the Content Isn’t Valid JSON?

Then the action fails before any schema check. I passed {Title: VPN access}, without quotes around the names and values:

The 'content' property of actions of type 'ParseJson' must be valid JSON. The provided value cannot be parsed: 'Unexpected character encountered while parsing value: V. Path 'Title', line 1, position 8.'.

Check what feeds Content. Text built by hand, an HTML email body, or a value with smart quotes are common causes. To build JSON text safely, see how to create an array.

What Else Did I Find About Schemas?

  • Extra fields are fine. A City field that wasn’t in the schema didn’t fail, and it was still in the output.
  • An empty schema {} accepts anything, but you get no tokens, so you’re back to expressions.
  • Content can be an object, not just text. Passing the record as an object parsed the same.

What Happened in My Tests?

TestResult
Valid record, matching schemaSucceeded, tokens available
Customer tokenMegan Bowen
Budget + 1001350
DueDate null, type stringValidationFailed
DueDate null, type [string, null]Succeeded
Required field missingValidationFailed
Budget “300” as textValidationFailed
Budget 1250.5, type integer / numberFailed / Succeeded
Extra field CitySucceeded
Invalid JSON textInvalidJSON
Array of 6 rowsSucceeded, length 6

Parse JSON: Cheat Sheet

GoalHow
Make a schemaUse sample payload to generate schema
Allow null"type": ["string", "null"]
Allow decimals"type": "number"
Optional fieldLeave it out of required
Read a fieldbody('Parse_JSON')?['Field']
Parse a list"type": "array" + items
See why it failedShow raw outputs on the failed action

For more Power Automate patterns, the Power Automate tutorials hub lists every post in order.

Frequently Asked Questions

What does Parse JSON do in Power Automate?

It reads JSON content, checks it against a schema, and turns each field into dynamic content. The data operations article on Microsoft Learn lists it with the other data operations.

How do I generate a schema for Parse JSON?

Select Use sample payload to generate schema under the Schema box, paste a sample with real values, and select Done. Then adjust types such as null.

Why does Parse JSON fail with ValidationFailed?

The content doesn’t match the schema, such as a null in a string field or a missing required field. Show raw outputs on the failed action to read the exact message.

How do I allow null in a Parse JSON schema?

Set the field’s type to a list such as [“string”, “null”]. My null DueDate failed with type string and passed with the list.

Do I need Parse JSON to read one field?

No. An expression like json(text)?[‘Customer’] reads one field without a schema. Parse JSON helps when you need many fields as dynamic content.

More Power Automate Tutorials

These posts are good next steps: