ason 0.1.0

A data format designed to be easy for humans to read and write.
Documentation

XiaoXuan Script Object Notation

XiaoXuan Script Object Notation (ASON) is a data format designed to be easy for humans to read and write. it is similar to JSON, but with some key differences. ASON is primarily used as a configuration file for applications, but it can also be used as a data transfer format.

Features

  • Compatible with most of the syntax of JSON and JSON5. If you are already familiar with JSON, you can read and write ASON without having to learning anything new.
  • Simple, rigorous and consistent. ASON improves and ehances JSON. For example, ASON numbers have data types, support comments, key names do not require double quotes, Boolean, Date and Tuple types are added. In addition, the null value that often causes ambiguity is removed.

Table of Content

Example

{
    string: "hello world"
    raw_string: r"[a-z]+"
    number: 123
    number_with_data_type_name: 123_456_789@long
    float: 3.14
    double: 6.626e-34@double
    bool: true
    date: d"2023-03-24 12:30:00+08:00"
    array: [1,2,3,]
    tuple: (1, "foo", true)
    object: {
        id: 123
        name: "leaf"
    }
}

Documentation

See the document for more information.

File Extension

The file extension for ASON is *.ason.

License

Check out LICENSE and LICENSE.additional.