- 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()"} ] } }}
推薦閱讀
- Linux設備驅動開發詳解:基于最新的Linux4.0內核
- Windows Server 2019 Cookbook
- Modern Web Testing with TestCafe
- Windows Server 2012 Hyper-V:Deploying the Hyper-V Enterprise Server Virtualization Platform
- Arch Linux Environment Setup How-to
- 混沌工程實戰:手把手教你實現系統穩定性
- 新手學電腦從入門到精通(Windows 10+Office 2016版)
- 嵌入式實時操作系統μC/OS原理與實踐
- 巧學活用Windows 7
- Ceph分布式存儲實戰
- AutoCAD 2014中文版從入門到精通
- Kali Linux 2018:Windows Penetration Testing
- 深入淺出Node.js
- Linux網絡操作系統項目教程(RHEL 7.4/CentOS 7.4)(第3版)(微課版)
- Android應用性能優化最佳實踐