-
Notifications
You must be signed in to change notification settings - Fork 21.8k
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
base: main
Are you sure you want to change the base?
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.
| ) | ||
| ``` | ||
|
|
||
| Suppose you have the JSON array and store in Compose1 action. |
Copilot
AI
Oct 23, 2025
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.
Corrected grammar: 'store' should be 'stored it in'.
| Suppose you have the JSON array and store in Compose1 action. | |
| Suppose you have the JSON array and stored it in the Compose1 action. |
|
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 <ecfan@users.noreply.github.com>
Co-authored-by: Esther Fan <ecfan@users.noreply.github.com>
Co-authored-by: Esther Fan <ecfan@users.noreply.github.com>
Co-authored-by: Esther Fan <ecfan@users.noreply.github.com>
Co-authored-by: Esther Fan <ecfan@users.noreply.github.com>
Co-authored-by: Esther Fan <ecfan@users.noreply.github.com>
Co-authored-by: Esther Fan <ecfan@users.noreply.github.com>
|
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. |
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.