Notifications
Announcements
JSON parsing error
Code in Power Apps button Click
Code in Web API Action
All code above is simple, and I find a similar question with a reply by 'Solution Supplier', he suggests questioner to use the flow instead of directly executing:
https://powerusers.microsoft.com/t5/Building-Power-Apps/Custom-connector-error-quot-JSON-parsing-error-expected-object/m-p/1340566
Should I also use this method to solve my error?
Hi,
Looks like it is not necessary to use the ParseJson function because the custom connector already parse it to you, so try this:
Set( WeatherObj, LocalWebAPI.CallLocalAPI() );
Please let me know if it worked, if not please share the error
Hi @victorcp ,
I have adopted your code, but Power apps still shows the same error.
I guess the ParseJson function which looks like the var keywork in C# converts a json string to be an untyped object, so I can call some fields of the 'WeatherObj', just like the picture as followed:
new error without using ParseJson function
Custom Connector Setting
Thanks
Hi @victorcp,
I have found lack of type setting in my custom connector , so your suggestion do work after I complete setting.
Thanks.
Attach new settings:
completed setting of custom connector
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.
In our never-ending quest to improve we are simplifying the forum hierarchy…
We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…
These are the community rock stars!
Stay up to date on forum activity by subscribing.
WarrenBelz 793 Most Valuable Professional
Michael E. Gernaey 333 Super User 2025 Season 2
Power Platform 1919 268