JSON:
{bus:{passengers:[{child:true},{no_ticket:true},{pensioner:true},{pensioner: true},{age:35}]}}
XML:
<bus>
<passengers>
<passenger>
<child>true</child>
</passenger>
<pensioner>true</pensioner>
<no_ticket>true</no_ticket>
<age>35</age>
</passengers>
</bus>
Copyright © 2024 SCHOLAR.TIPS - All rights reserved.
Answers & Comments
JSON:
{bus:{passengers:[{child:true},{no_ticket:true},{pensioner:true},{pensioner: true},{age:35}]}}
XML:
<bus>
<passengers>
<passenger>
<child>true</child>
</passenger>
<passenger>
<pensioner>true</pensioner>
</passenger>
<passenger>
<pensioner>true</pensioner>
</passenger>
<passenger>
<no_ticket>true</no_ticket>
</passenger>
<passenger>
<age>35</age>
</passenger>
</passengers>
</bus>