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*

相关推荐
Eyfcom7 小时前
〖实战〗跨境报关单证自动化:XML 报文生成、PDF 套打与单一窗口同步上传的工程实现
xml·pdf·自动化·报关单证·清关自动化
喵喵虫1 天前
汉字笔顺笔画元数据导出 JSON
小程序·json·元数据·汉字·笔顺·笔画
熊猫钓鱼>_>1 天前
Kotlin Multiplatform for OpenHarmony 实战:kotlinx-serialization JSON 适配
开发语言·华为·kotlin·华为云·json·harmonyos·code
泡海椒2 天前
从 XML 到 Excel:JQuick-Excel 代理与解析器如何协作
xml·excel
雪芽蓝域zzs2 天前
json数据转化成interface属性
前端·javascript·json
ha_lydms2 天前
Json Functions(JSON 函数)
大数据·hadoop·spark·json·数据处理·dataworks·maxcompute
BD_Marathon2 天前
JSONLoader加载JSON文件
json
积流成海2 天前
JSON 格式化:语法校验与错误定位实践
json·状态模式·盘子工具站
JavaPub-rodert3 天前
Docker 日志为什么能把磁盘写爆?讲透 json-file、local、journald、日志轮转与 docker logs
docker·eureka·json