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

Notifications

Announcements

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)
  • ManishSolanki Profile Picture
    15,091 Super User 2025 Season 2 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,443 Super User 2025 Season 2 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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 525 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 324 Moderator

#3
abm abm Profile Picture

abm abm 232 Most Valuable Professional

Last 30 days Overall leaderboard