1. XML:
<object>
<object name="mail">
<object name="from">xxx@xxx.com</object>
<object name="to">yyy@yyy.com</object>
</object>
<array name="users">
<object>
<object name="id">1</object>
<object name="name">james</object>
</object>
<object>
<object name="id">2</object>
<object name="name">kent</object>
</object>
</array>
</object>
2. JSON:
{mail: {from: "xxx@xxx.com", to: "yyy@yyy.com"}, users: [{id: 1, name: "james"},{id: 2, name: "kent"}]}
3. Properties:
mail.from=xxx@xxx.com
mail.to=yyy@yyy.com
users.0.id=1
users.0.name=james
users.1.id=2
users.1.name=kent
4. YAML:
mail:
from: "xxx@xxx.com"
to: "yyy@yyy.com"
users:
- id: 1
name: james
- id: 2
name: kent
|