- Web Penetration Testing with Kali Linux(Third Edition)
- Gilberto Najera Gutierrez Juned Ahmed Ansari
- 104字
- 2021-06-24 18:44:55
XML and JSON
Both XML and JSON are used by web services to represent structured sets of data or objects.
As discussed in previous sections, XML uses a syntax based on tags and properties, and values for those tags; for example, the File menu of an application, can be represented as follows:
<menu id="m_file" value="File"> <popup> <item value="New" onclick="CreateDocument()" /> <item value="Open" onclick="OpenDocument()" /> <item value="Close" onclick="CloseDocument()" /> </popup> </menu>
JSON, on the contrary, uses a more economic syntax resembling that of C and Java programming languages. The same menu in JSON format will be as follows:
{"menu": { "id": "m_file", "value": "File", "popup": { "item": [ {"value": "New", "onclick": "NewDocument()"}, {"value": "Open", "onclick": "OpenDocument()"}, {"value": "Close", "onclick": "CloseDocument()"} ] } }}
推薦閱讀
- 樂學Windows操作系統
- Linux系統文件安全實戰全攻略
- WordPress Mobile Web Development:Beginner's Guide
- RESS Essentials
- 完美應用RHEL 8
- Fedora 12 Linux應用基礎
- 操作系統分析
- Kali Linux高級滲透測試(原書第3版)
- bash shell腳本編程經典實例(第2版)
- Raspberry Pi入門指南
- Linux操作系統案例教程(第2版)
- Mastering Sass
- BuddyPress Theme Development
- 鴻蒙HarmonyOS應用開發從入門到精通
- Responsive Web Design by Example:Beginner's Guide(Second Edition)