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

Community site session details

Session Id : qRfhPgvWBO/OcWD04053fH
Power Automate - General Discussion
Unanswered

The property 'content' must be of type JSON in the 'ParseJson' action inputs, but was of type 'image/png' error

Like (1) ShareShare
ReportReport
Posted on 27 Oct 2020 21:32:10 by 248

Hi, I'm running into the following error: "The property 'content' must be of type JSON in the 'ParseJson' action inputs, but was of type 'image/png'."  

 

I'm using an HTTP action to call an external API that only turns the two objects shown in the image.  How would I parse this as JSON or fix this error?

 

2020-10-27_15-29-45.jpg

  • Drupad_Prabhu Profile Picture
    9 on 20 Dec 2022 at 18:25:46
    Re: thatRe: The property 'content' must be of type JSON in the 'ParseJson' action inputs, but was of type 'image/png' error

    Hi @mercobenitas,

    I add a compose after my HTTP action. Insert my HTTP output in this. Then used what rdobryanskyy wrote to get the content (rename Action_name):

    outputs(‘Action_name’)?[body/$content’]

    Drupad_Prabhu_0-1671560301901.png

     

    See outputs:

    Drupad_Prabhu_1-1671560390906.png

    Drupad_Prabhu_2-1671560413852.png

    Is this right? if so, what are the next steps.

    FYI: what I am trying to do is: When a user submits a MS form, an API call is sent to the QR code generator tool using HTTP when gets back the following output:

    {
      "$content-type": "image/png",
      "$content": "iVBORw0KGgoAAAANSUhEU....etc
    }
     
    Now I would want to convert this HTTP output into an QR code image file (PNG) and attach it to the email so that it can be sent out via email.
     
    Please help me out with the next steps.

    CC: @cbernier12 @cbernier12 @rdobryanskyy 
  • mercobenitas Profile Picture
    14 on 20 Dec 2022 at 16:24:17
    Re: thatRe: The property 'content' must be of type JSON in the 'ParseJson' action inputs, but was of type 'image/png' error

    Try adding a compose after your HTTP action. Insert your HTTP output in this. Then use what rdobryanskyy wrote to get the content (rename Action_name):

    outputs(‘Action_name’)?[body/$content’]

  • Drupad_Prabhu Profile Picture
    9 on 20 Dec 2022 at 16:03:02
    Re: thatRe: The property 'content' must be of type JSON in the 'ParseJson' action inputs, but was of type 'image/png' error

    Hi @cbernier12 & @Jcook , I am stuck with the same issue. Could you please take a look at my flow and help me out. I am trying to send out an email with the QR code (PNG file) that is being generated using the HTTP. Could you please let me know what the next steps on this. Thanks

    This is the successful output in the Response action:

    {
      "$content-type""image/png",
      "$content""iVBORw0KGgoAAAANSUhEUgAAA....etc
    }
     

    Drupad_Prabhu_0-1671551863777.png

    Drupad_Prabhu_1-1671552142291.png

     

     

  • McRoe Profile Picture
    10 on 11 May 2022 at 02:38:22
    Re: The property 'content' must be of type JSON in the 'ParseJson' action inputs, but was of type 'image/png' error

    Instead of creating a separate Array you can also use [<your compose output>], works for me. See below. Dump the json first in a compose, so you can copy the schema for the Generate from sample.

     

    .Screen Shot 2022-05-10 at 21.35.55.png

  • rdobryanskyy Profile Picture
    35 on 23 Mar 2021 at 14:18:57
    Re: The property 'content' must be of type JSON in the 'ParseJson' action inputs, but was of type 'image/png' error

    To use a part of the output, try to use this in expressions:

     

    outputs('Action_name')?['body/$content']
  • Jcook Profile Picture
    7,779 Most Valuable Professional on 02 Nov 2020 at 20:24:29
    Re: thatRe: The property 'content' must be of type JSON in the 'ParseJson' action inputs, but was of type 'image/png' error

    Hi @cbernier12 

     

    Awesome to hear, could you mark a post as a solution. (This could be your post as well) Which ever reply was the solution to your question. 

  • cbernier12 Profile Picture
    248 on 29 Oct 2020 at 22:04:33
    Re: thatRe: The property 'content' must be of type JSON in the 'ParseJson' action inputs, but was of type 'image/png' error

    @Jcook never mind, needed to remove and re-add the Flow data object from data sources and it started working.  I forgot to do that...

  • cbernier12 Profile Picture
    248 on 29 Oct 2020 at 15:49:37
    Re: thatRe: The property 'content' must be of type JSON in the 'ParseJson' action inputs, but was of type 'image/png' error

    Need both values for content and content-type to show up in the Power Apps collection.

  • Jcook Profile Picture
    7,779 Most Valuable Professional on 29 Oct 2020 at 14:46:56
    Re: thatRe: The property 'content' must be of type JSON in the 'ParseJson' action inputs, but was of type 'image/png' error

    Hi @cbernier12 

     

    What exactly is the expected outcome? Are you trying to get the Image into Power Apps?

  • cbernier12 Profile Picture
    248 on 29 Oct 2020 at 01:31:27
    thatRe: The property 'content' must be of type JSON in the 'ParseJson' action inputs, but was of type 'image/png' error

    Ok what I added is initialize variable, parse JSON, and Response actions and the output looks ok, however the actual values don't make to the Power Apps collection, the columns do, just not the values.  Any idea on how to send the the values of content-type and content to Power Apps?  The flow is run from Power Apps and as stated the two columns in the collection are created.

     

    This is the successful output in the Response action:

    [
      {
        "$content-type""image/png",
        "$content""iVBORw0KGgoAAAANSUhEUgAAAJYAAACWAQMA.........."
      }
    ]

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Telen Wang – Community Spotlight

We are honored to recognize Telen Wang as our August 2025 Community…

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Tomac Profile Picture

Tomac 986 Moderator

#2
stampcoin Profile Picture

stampcoin 699 Super User 2025 Season 2

#3
Riyaz_riz11 Profile Picture

Riyaz_riz11 577 Super User 2025 Season 2