Skip to content
/ XSON Public

eXtensible and Simple Object Notation: an open data interchange language/file format. This repo contains all documentation for XSON.

License

Notifications You must be signed in to change notification settings

xson-lang/XSON

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

35 Commits
 
 
 
 
 
 
 
 

Repository files navigation

XSON

eXtensible and Simple Object Notation is an open data interchange language/file format created by Arastais. It is designed to be the quintessential format for many electronic applications, including data serialization and configuration files, and to solve many of the problems with commonly-used data interchange formats.

XSON is built with two core principles:

  • An exceedingly simple base specification that allows standalone XSON to be extremely minimal, containing only features and syntax that is absolutely necessary - no extra features that may go unused. Standalone XSON is also exceptionally human-readable due to its simple and lightweight nature; This should enable users who do not have any prior knowledge of XSON to understand and infer the rules of XSON and thus even modify XSON files. There is no versioning for the base spec - just one standardized specification and no dialects - so no need to keep up with changes to the spec.
  • An extension system that allows users to explicitly specify additional/optional features or feature sets on a per-file basis. Each extension is a new feature or change to the base spec of XSON. Each extension or extension set must be explicitly enabled, thus it is clear which extensions are being used in an XSON file; This allows users to only use the features they want and outside readers to know which features are being leveraged. This system is most similar semantically to the XEP series of XMPP: Each extension is identified with a unique ID coupled with the XLE prefix (e.g. XLE-1). Opting-in to the necessary extensions also allows XSON to be backwards-compatible with other common file formats such as JSON, YAML, and INI.

See the wiki for more details, including the base spec and extensions.

For a list of XSON libraries, check out the XSON standardized library list

Example

Here is a simple example of an xson file (with no extensions enabled):

/* (This is a multi-line comment)
 * List of servers in an XSON file
 */
servers: {
  //Another comment.
  alpha:  [10.0.0.2, My Home Server]
  bravo:  [10.0.0.7, My Work Server]
  charlie:[10.0.0.9, My Friend's Server]
  aux: {
    //Whitespace around (but not inside) the key or value is ignored
    os        :  Ubuntu
    version   :  22.04 LTS
    start time:  14:03:59:10 //The first colon is used to separate the key and value
  }
}

Repo Folder Structure

  • /docs: All documentation for XSON, including the wiki, readme, base spec, and all implementation details
  • /samples: Sample XSON files
  • /grammar: TextMate grammar files for XSON

Contributing

Please refer to the contribution guidelines for any type of contribution, including documentation, donations, extensions or extension sets, and parsers/generators.

About

eXtensible and Simple Object Notation: an open data interchange language/file format. This repo contains all documentation for XSON.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published