@xieyuheng/x-json
TypeScript icon, indicating that this package has built-in type declarations

0.0.1 • Public • Published

X-JSON

A dependently typed programming language embedded in JSON, that can be used as a schema checker for JSON data.

The syntax is optimized for the most used use cases.

Instead of writing (like in json-schema):

{
  "type": "object",
  "properties": {
    "year": { "type": "number" },
    "name": { "type": "string" }
  }
}

I want to write:

{
  "name": "string",
  "year": "number"
}

Install

npm i @xieyuheng/x-json

Contributions

To make a contribution, fork this project and create a pull request.

Please read the STYLE-GUIDE.md before you change the code.

Remember to add yourself to AUTHORS. Your line belongs to you, you can write a little introduction to yourself but not too long.

License

GPLv3

Readme

Keywords

none

Package Sidebar

Install

npm i @xieyuheng/x-json

Weekly Downloads

0

Version

0.0.1

License

GPL-3.0-or-later

Unpacked Size

36.8 kB

Total Files

5

Last publish

Collaborators

  • xieyuheng