Last active
March 8, 2022 20:05
-
-
Save bhathiya/c7142e1140ec98750253 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<proxy xmlns="http://ws.apache.org/ns/synapse" | |
name="JsonSplitterBlog" | |
transports="https,http" | |
statistics="disable" | |
trace="disable" | |
startOnLoad="true"> | |
<target> | |
<inSequence> | |
<payloadFactory media-type="json"> | |
<format>{"users":[{"name":"X", "age":"10"},{"name":"Y", "age":"12"},{"name":"Z","age":"15"}]}</format> | |
<args/> | |
</payloadFactory> | |
<iterate continueParent="true" expression="//users"> | |
<target> | |
<sequence> | |
<log level="custom"> | |
<property name="Name is" expression="//users/name"/> | |
<property name="Age is" expression="//users/age"/> | |
</log> | |
</sequence> | |
</target> | |
</iterate> | |
</inSequence> | |
</target> | |
<description/> | |
</proxy> | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment