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 / HTTP: JsonDecodingExce...
Power Automate
Answered

HTTP: JsonDecodingException: Unexpected JSON token

(0) ShareShare
ReportReport
Posted on by

hi

I want to user HTTP  to make a PATCH HTTP call. I managed to make it working BUT

 

in case the body request comes from data

cimenta_0-1709297430851.png

flow fails because of

 

JsonDecodingException: Unexpected JSON token at offset 10: Encountered an unknown key 'lastname' at path: $.user
Use 'ignoreUnknownKeys = true' in 'Json {}' builder to ignore unknown keys.
JSON input: {"user":{"lastname":"from PA"}}

 

 

cimenta_1-1709297707805.png

 

Copy of body when flow fails

 

{
  "user": {
    "lastname": "from PA2"
  }
}

 

Copy of body when flow runs ok

{
  "user": {
    "lastName": "Apple"
  }
}

 

But if I type into body basicaly the same string then it works

cimenta_2-1709298242644.png

 

Any idea how to make it work?

 

Categories:
I have the same question (0)
  • Manish Solanki Profile Picture
    15,167 Moderator on at

    Hi @cimenta 

     

    Pls try wrapping request body with json function. You need to write an expression to apply json function.

    Reference guide for expression functions - Azure Logic Apps | Microsoft Learn

     

    Or store the request body temporarily in a compose action and pass the output of compose action to the body of http action. 

     

     

    If this helps & solves your problem, please remember to give a 👍 and accept my solution as it will help others in the future.

     

  • RÅ -11121024-0 Profile Picture
    on at

    hi Manish

     

    do you mean this?

    cimenta_0-1709301146887.png

     

    It did no help I am getting the same error

     

    JsonDecodingException: Unexpected JSON token at offset 10: Encountered an unknown key 'lastname' at path: $.user
    Use 'ignoreUnknownKeys = true' in 'Json {}' builder to ignore unknown keys.
    JSON input: {"user":{"lastname":"from PA"}

     

    Thank you

    Radek

  • Verified answer
    Chriddle Profile Picture
    8,685 Super User 2026 Season 1 on at

    lastName

  • RÅ -11121024-0 Profile Picture
    on at

    Thank you Chriddle. You are right. It was meeeeee

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Haque Profile Picture

Haque 594

#2
Valantis Profile Picture

Valantis 469

#3
11manish Profile Picture

11manish 364

Last 30 days Overall leaderboard