cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
u4jaanus
Resolver I
Resolver I

JSON Parsin

hi,

I know, we need to provide JSON schema which decides what to expect as input Array or an Object but what if we do not know what the response would be in an array or object. How to handle that?

 

Thank you.

1 ACCEPTED SOLUTION

Accepted Solutions
u4jaanus
Resolver I
Resolver I

Sorry for late reply; I solved the issue by allowing multiple types in Type.
--- type: ["array", "object"]. 

View solution in original post

2 REPLIES 2
v-xiaochen-msft
Community Support
Community Support

Hi @u4jaanus ,

 

You could try to use [] in 'Generate from sample'.

v-xiaochen-msft_0-1613545794212.png

v-xiaochen-msft_1-1613545808101.png

 

No matter what the input is, it runs successfully.

Howerver, In the next steps, you cannot get specific columns.

v-xiaochen-msft_2-1613545909447.png

 

Best Regards,
Wearsky
If my post helps, then please consider Accept it as the solution to help others. Thanks.

u4jaanus
Resolver I
Resolver I

Sorry for late reply; I solved the issue by allowing multiple types in Type.
--- type: ["array", "object"]. 

View solution in original post

Helpful resources

Announcements
PA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

PA Community Call

Power Apps Community Call

Next call is happening on April 21st at 8a PST.

MBAS Carousel

Sign up for our May 4th event!

May the fourth be with you, join us online!

secondImage

Experience what’s next for Power Apps

See the latest Power Apps innovations, updates, and demos from the Microsoft Business Applications Launch Event.

Top Solution Authors
Top Kudoed Authors
Users online (14,569)