web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / InvalidJSON fundamenta...
Power Automate
Unanswered

InvalidJSON fundamentals - The 'content' property of actions of type 'ParseJson' must be valid JSON.

(0) ShareShare
ReportReport
Posted on by

I am struggling with something very simple, which might be why I cannot find the solution. (Most topics on this subject are far more complex.) I am getting an error when Parse JSON is a simple string (but not with integer or boolean). Error message is "The 'content' property of actions of type 'ParseJson' must be valid JSON."

 

This works (where input field are the letters true with no surrounding quotes:

 

 

 

{
 "inputs": {
 "content": true,
 "schema": {
 "type": "boolean"
 }
 }
}

 

 

 

But this fails (where input fields reads abc with or without surrounding quotes:

 

 

{
 "inputs": {
 "content": "abc",
 "schema": {
 "type": "string"
 }
 }
}

 

 

 

For the following, I will just show the content value... the schema all remain as   "type": "string"

These succeeds with output { "body": "x" }

 

 

"@if( true, '\"x\"', '\"y\"' )"
"@concat( '\"', if( true, 'x', 'y' ), '\"' )"

 

 

 while these fail (the 1st line is same expression as 2nd line but wrapped in quotes within Input field)

 

 

"@{if( true, 'x', 'y' )}"
"@if( true, 'x', 'y' )"

 

 

 

Am I constrained to wrapping quotes inside of expression? 

Categories:
  • Michael E. Gernaey Profile Picture
    53,970 Super User 2026 Season 2 on at

    Hi

     

    does it fail when you try to save or when you send actual content to the ParseJson 

     

    Can you share a sample Json input that goes against that string schema?

     

    also if you take the input file and generate the schema based on that (click generate using a sample) then use the input json as the sample, what schema does it generate?


    Cheers
    If you like my answer, please Mark it as Resolved, and give it a thumbs up, so it can help others
    Thank You
    Michael Gernaey MCT | MCSE | MCP | Self-Contractor| Ex-Microsoft
    https://gernaeysoftware.com
    LinkedIn: https://www.linkedin.com/in/michaelgernaey

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Automate

#1
11manish Profile Picture

11manish 237 Super User 2026 Season 2

#2
David_MA Profile Picture

David_MA 227 Super User 2026 Season 2

#3
Mohsin Ali Profile Picture

Mohsin Ali 194

Last 30 days Overall leaderboard