Skip to content

数据交换格式

数据结构

There are many kinds of data structures, but they can all be adequately represented with three basic primitives: mappings (hashes/dictionaries), sequences (arrays/lists) and scalars (strings/numbers).

数据类型

数据格式

XML

eXtensible Markup Language

应用举例:

  • Maven pom.xml
  • Spring ApplicationContext.xml

JSON

JavaScript Object Notation

应用举例:

  • npm package.json

YAML

YAML Ain't Markup Language

应用举例:

  • SpringBoot application.yaml

Toml

应用举例:

  • rust的包描述文件 Cargo.toml

Reference

Powered by VitePress