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*

相关推荐
sa1002720 小时前
京东评论 API 实战:JSON 数据结构、字段含义与解析技巧
前端·数据结构·json
查拉图斯特拉面条21 小时前
JMeter 实战技巧:JSON 数组筛选指定对象并剔除首尾大括号
jmeter·json
霸道流氓气质21 小时前
Spring AI 结构化输出 Agent 实战:让大模型返回精准 JSON
人工智能·spring·json
查拉图斯特拉面条1 天前
JMeter 实战:JSON 响应中文节点 + 数值精准断言(附真实接口案例)
jmeter·json
Rooting++2 天前
package.json三种依赖的区别
vue.js·json
曹牧2 天前
C#:DataGridView控件中展示JSON内容
开发语言·c#·json
howard20053 天前
4.4 Spark SQL数据源 - JSON
json·spark sql数据源
灰子学技术3 天前
Envoy gRPC-JSON 转码器功能实现分析
json
夜雪闻竹3 天前
Cursor 的 state.vscdb 解析踩坑记
json·aigc·ai编程
水煮白菜王3 天前
JSONEditor 使用指南
前端·javascript·chrome·json