Let's POWER Automate

From no-code to low-code

Menu
  • Expressions
  • Filters
  • General
  • Application specific solutions
    • Dataverse
    • Excel
    • Forms
    • Outlook
    • Planner
    • Power Apps
    • SharePoint
    • Teams
  • Triggers
  • Ready to use solutions
    • Approval Process Solution
    • Task Delegation App
    • The Ultimate Power Automate expressions cheat sheet
    • Power Automate HTTP requests to SharePoint cheat sheet
    • Power Automate HTTP requests to Graph API cheat sheet
  • ABOUT ME
  • Get help with your flow
  • POWER PLATFORM SERVICES
Menu

How to improve JSON schema in Parse JSON action

Posted on May 19, 2025May 22, 2025 by Tom

“There’s such a mess among the dynamic contents, can I somehow improve JSON schema in Parse JSON action to get better outputs?”


As you probably already know by now, Power Automate is based on JSON – all the inputs and outputs are in JSON, no matter what action you use. Which is why the ‘Parse JSON’ can help you convert output of any action into dynamic contents.

However, it turns the JSON into a flat structure, making it hard to find the desired value. That’s why I avoided this action in the past and used expressions to get the values instead. But it doesn’t have to be that way! This article will show you a few improvements to the JSON schema to avoid these situations.

Clean up the sample JSON

Firstly, don’t just take the whole JSON output and paste in as a sample, but remove the properties you don’t need. For example, when getting previous version of a SharePoint item you don’t need all the metadata, maybe the Title is enough.

Take the whole output JSON and remove every property except the ones to keep. Be careful about keeping all the brackets in correct place.

improve json schema in parse json

Use only the reduced JSON as the schema and the dynamic contents will be much easier to access.

improve json schema in parse json

Deal with possible empty values

The most common problem with the ‘Parse JSON’ action are null values. “Invalid type. Expected String but got Null“.

Each property contains the data type in the JSON schema, in the example below it is a string.

If the value contains anything else than a string, e.g. a null value, the ‘Parse JSON’ action will fail. To avoid the problem you must expand the supported types, tell it that it can have different value types too (if it can).

Replace the type with the anyOf property allowing more data types than just one.

"anyOf": [
    {
        "type": "string"
    },
    {
        "type": "null"
    }
]
improve json schema in parse json

Change property display name

If you still have some properties with the same name in the schema, or if you just want to make them more recognisable, you can rename them using the JSON schema. Just add the ‘title’ property to the object.

"properties": {
    "Title": {
        "type": "string",
        "title": "My new name"
    }
}

Add property description

And if changing the property name is not enough, you can add a description too, by adding the ‘description’ property into the object.

"properties": {
    "Title": {
        "type": "string",
        "description": "The title of the item."
    }
}

The dynamic content will display not only the property name, but the description too.

improve json schema in parse json

Summary

As you can see, if you improve JSON schema in Parse JSON the action can be quite useful after all – you just have to adjust it a bit.

The first step is probably the most important one – don’t just paste the whole output as a schema, keep only the properties you want to use later. Add support for null values, maybe add a few descriptions, and make the output from ‘Parse JSON’ more user friendly. This way you don’t need expressions to get to the values, everything you need can be easily accessible as dynamic contents.


πŸš€ Master Power Automate

Join 2,000+ professionals getting actionable Power Automate tutorials, solutions, cheat sheets & tips every week.

No spam. Unsubscribe anytime.

1 thought on “How to improve JSON schema in Parse JSON action”

  1. Isna says:
    May 21, 2025 at 2:20 am

    how about data not string?

    Reply

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

πŸš€ Master Power Automate

Join 2,000+ professionals getting actionable Power Automate tutorials, solutions, cheat sheets & tips every week.

No spam. Unsubscribe anytime.

Still exchanging emails to get things approved?

Get the Approval Process solution and the Task Delegation App to skip the hard part and deploy an automated, fully functional approval solution on a SharePoint list in minutes! And then the next one, and the next one...

Approval Template Preview ✨ Learn more ✨

Turn ideas into flows with ease!

Grab the complete Power Automate Cheat Sheet Bundleβ€”everything you need to master expressions, SharePoint HTTP calls, and Graph API in Power Automate.

Cheat Sheet Bundle Preview ✨ Get the Cheat Sheets

Didn't find what you were looking for?
Need to adjust a solution to fit your needs?
Or would you just like to get an assistance from somebody with thousands of hours of experience with Power Automate?

Power Automate blogs worth visiting

Damien Bird
Dennis (Expiscornovus)
Paul Murana

©2025 Let's POWER Automate | Theme by SuperbThemes