XML Extension Supplement

Web Services

A Web service is a software system designed to support interoperable machine-to-machine interaction over a network.

URI和URL

URI,全称是统一资源标识符(Uniform Resource Identifier),是一个用于标识某一互联网资源名称的字符串。这个字符串的格式由互联网标准RFC 3986定义。URI的目的是为了提供一种简单的方法来标识互联网上的资源。

URI的常见形式包括URL(统一资源定位符)和URN(统一资源名称)。

  • URL是最常见的URI形式,它不仅标识资源,还提供了一个方法来定位和访问这个资源(例如:https://www.example.com)。

  • URN则是资源的唯一名称,它与资源的位置无关(例如:urn:isbn:0451450523,这是一个书籍的国际标准书号)。

JSON

  • JSON (JavaScript Object Notation).

  • Commonly used to create dynamic screen elements on websites, or transfer data over the web.

  • The syntax is taken from JavaScript but JSON is portable with other languages.

  • It is easy for humans to read and write.

  • It is easy for machines to parse and generate.

JSON Types Examples

Objects {"key": "value"}
Arrays [1, 2, 3]
String "abc"
Numbers 1
Boolean true false
Null null

JSON Pros and Cons

Pros:

  • Very small

  • Easy to parse

  • Widely support

  • Tightly integrated with JavaScript

Cons:

  • Limited data types

  • No comment syntax

  • Not self describing

  • No JSON schema*

相关推荐
阿华的代码王国5 小时前
【Android】适配器与外部事件的交互
android·xml·java·前端·后端·交互
阿华的代码王国17 小时前
【Android】RecyclerView复用CheckBox的异常状态
android·xml·java·前端·后端
DavieLau2 天前
C#项目WCF接口暴露调用及SOAP接口请求测试(Python版)
xml·服务器·开发语言·python·c#
曹牧2 天前
XML头部声明发送者信息的实现方法
xml
陈涛5752 天前
5个最好用的 JSON 工具推荐:让数据处理变得简单高效
json
bkspiderx3 天前
pb2json.hpp 文档:Protobuf 与 JSON 通用转换工具类
json·protobuf·protobuf与json转换
寒士obj3 天前
熟悉并使用Spring框架 - XML篇
xml·java·spring
Arva .4 天前
Spring基于XML的自动装配
xml·java·spring
fatfishccc4 天前
循序渐进学 Spring (上):从 IoC/DI 核心原理到 XML 配置实战
xml·java·数据库·spring·intellij-idea·ioc·di
万粉变现经纪人4 天前
何解决PyCharm中pip install安装Python报错ModuleNotFoundError: No module named ‘json’问题
python·pycharm·json·beautifulsoup·scikit-learn·matplotlib·pip