Created
January 8, 2012 09:35
-
-
Save yarinb/1577850 to your computer and use it in GitHub Desktop.
XML vs. JSON?
This file contains hidden or 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
{ | |
"jobs":[ | |
{ | |
"jobname":"ServerPingJob.groovy", | |
"period":5, | |
"timeUnit":"SECONDS", | |
"jobMode":"ASYNCHRONOUS", | |
"disabled":true, | |
"params":[ | |
{ | |
"foo":"bar", | |
"foooo1":"baz" | |
} | |
] | |
}, | |
{ | |
"jobname":"SayHello.rb", | |
"cronExpression":"*/30 * * * * ?", | |
"jobMode":"SYNCHRONOUS", | |
"params":[ | |
{ | |
"name":"yarin" | |
} | |
] | |
} | |
] | |
} |
This file contains hidden or 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"?> | |
<jobs> | |
<job name="ServerPingJob.groovy" period="5" timeUnit="SECONDS" jobMode="SYNCHRONOUS" disabled="true"> | |
<params> | |
<param key="foooo" value="bar"/> | |
<param key="fooo1" value="bar2"/> | |
</params> | |
</job> | |
<job name="SayHello.groovy" cron="*/30 * * * * ?" jobMode="ASYNCHRONOUS"> | |
<params> | |
<param key="name" value="yarin"/> | |
</params> | |
</job> | |
</jobs> | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
XML is for markup, JSON is for objects. It's as simple as that.