-
Notifications
You must be signed in to change notification settings - Fork 21.9k
Minor update - Convert JSON array to XML examples #127765
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Added examples demonstrating how to use the xml() function with JSON data, including two options for converting JSON arrays to XML.
Clarified the input requirements for the xml() function, emphasizing that it expects an object or valid XML string and not a raw array.
|
@watana2 : Thanks for your contribution! The author(s) and reviewer(s) have been notified to review your proposed change. |
|
Learn Build status updates of commit e1115fd: ✅ Validation status: passed
For more details, please refer to the build report. |
|
Learn Build status updates of commit 5e30492: ✅ Validation status: passed
For more details, please refer to the build report. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR adds documentation for converting JSON arrays to XML format in Azure Logic Apps. Since the xml() function doesn't accept raw arrays, the update demonstrates two workarounds for wrapping arrays in objects before conversion.
Key changes:
- Added Example 4 to the
xml()function documentation showing array-to-XML conversion techniques - Documented two approaches: using a Compose action with JSON object wrapper, and using
concat()to build the wrapper string
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
|
Can you review the proposed changes? Important: When the changes are ready for publication, adding a #label:"aq-pr-triaged" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, @watana2!
Co-authored-by: Esther Fan <[email protected]>
Co-authored-by: Esther Fan <[email protected]>
Co-authored-by: Esther Fan <[email protected]>
Co-authored-by: Esther Fan <[email protected]>
Co-authored-by: Esther Fan <[email protected]>
Co-authored-by: Esther Fan <[email protected]>
Co-authored-by: Esther Fan <[email protected]>
|
Learn Build status updates of commit 3306c90: ✅ Validation status: passed
For more details, please refer to the build report. |
|
Learn Build status updates of commit 6e39628: ✅ Validation status: passed
For more details, please refer to the build report. |
|
Learn Build status updates of commit 6c51b25: ✅ Validation status: passed
For more details, please refer to the build report. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you!
|
Learn Build status updates of commit 66e9154: ✅ Validation status: passed
For more details, please refer to the build report. |
|
@ecfan I'll merge this PR based on your approval. If this article requires further changes, please open a separate pull request. |
Added examples demonstrating how to wrap JSON array in an object before conversion. Included two methods (Compose object and concat approach) to generate valid XML output.