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*

相关推荐
码农娟1 小时前
Hutool XML工具-XmlUtil的使用
xml·java
芋头莎莎2 小时前
基于MQTT通讯UNIapp程序解析JSON数据
前端·uni-app·json
研☆香5 小时前
介绍一下JSON数据
json
码农娟7 小时前
Hutool XML工具-XmlUtil遇到标签问题
xml
电商API&Tina7 小时前
【电商API】淘宝/天猫拍立淘(按图搜索商品)API 全解析
大数据·开发语言·数据库·人工智能·json·图搜索算法
winfredzhang16 小时前
实战复盘:如何用 HTML+JS+AI 打造一款“影迹”智能影视管理系统
javascript·html·json·加载·搜索·保存·电影接口
流沙QS1 天前
JSON序列化/反序列化工具改进版
java·json
曹牧1 天前
JSON文本格式化
json
草履虫建模1 天前
A02 Maven 基础配置:本地仓库、镜像、项目编码与常见问题(IDEA 实战)
xml·java·spring boot·spring·maven·intellij-idea·idea
ChindongX1 天前
garbage at the end of the document
qt·json