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
UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

M365 768x460.jpg

Microsoft 365 Collaboration Conference | December 7–9, 2021

Join us, in-person, December 7–9 in Las Vegas, for the largest gathering of the Microsoft community in the world.

Top Solution Authors
Top Kudoed Authors
Users online (2,883)