- 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()"} ] } }}
推薦閱讀
- Citrix XenApp Performance Essentials
- 每天5分鐘玩轉(zhuǎn)Kubernetes
- 網(wǎng)絡(luò)操作系統(tǒng):Windows Server 2003管理與應(yīng)用
- VMware Horizon View 6 Desktop Virtualization Cookbook
- PLC控制系統(tǒng)應(yīng)用與維護(hù)
- 深入Linux內(nèi)核架構(gòu)與底層原理(第2版)
- 混沌工程:復(fù)雜系統(tǒng)韌性實(shí)現(xiàn)之道
- Java EE 8 Design Patterns and Best Practices
- Linux自動(dòng)化運(yùn)維:Shell與Ansible(微課版)
- Microsoft Operations Management Suite Cookbook
- Kali Linux 2018:Windows Penetration Testing
- Learning Magento 2 Administration
- 操作系統(tǒng)分析
- Linux網(wǎng)絡(luò)操作系統(tǒng)項(xiàng)目教程(RHEL 7.4/CentOS 7.4)(第3版)(微課版)
- Linux內(nèi)核API完全參考手冊(cè)(第2版)