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*

相关推荐
酷爱码4 小时前
Spring Boot项目中JSON解析库的深度解析与应用实践
spring boot·后端·json
不惑_9 小时前
用 PyQt5 打造一个可视化 JSON 数据解析工具
开发语言·qt·json
漫游者Nova11 小时前
PDF转Markdown/JSON软件MinerU最新1.3.12版整合包下载
pdf·json·markdown·mineru
snow@li1 天前
vue3+ts+vite:详细、完整的 tsconfig.json 示例 / 常见配置项及其用途
json·tsconfig.json
南郁1 天前
007-nlohmann/json 项目应用-C++开源库108杰
c++·开源·json·nlohmann·现代c++·d2school·108杰
紫乾20141 天前
idea json生成实体类
java·json·intellij-idea
武子康2 天前
Java-39 深入浅出 Spring - AOP切面增强 核心概念 通知类型 XML+注解方式 附代码
xml·java·大数据·开发语言·后端·spring
愿你天黑有灯下雨有伞2 天前
MyBatis-Plus LambdaQuery 高级用法:JSON 路径查询与条件拼接的全场景解析
mysql·json·mybatis
wtsolutions3 天前
JSON to Excel 3.0.0 版本发布 - 从Excel插件到Web应用的转变
json·excel·json-to-excel·wtsolutions
MX_93593 天前
JSON基础知识
开发语言·javascript·json