Score
0
Watch 6 Star 16 Fork 3

PowerJSON / PowerJSONJavaScriptMIT

Join us
Explore and code with more than 2 million developers,Free private repositories !:)
Sign up
PowerJSON 是由 JSON 改进的数据交换格式。 spread retract

https://www.powerjson.org/

Clone or download
Cancel
Notice: Creating folder will generate an empty file .keep, because not support in Git
Loading...
README.md

PowerJSON

:clap: Powerjson is json's improved data format that takes advantage of JSON and JavaScript syntax and adds many new features to solve some of JSON's long-standing problems.

It supports single quoted strings, multi-line strings, comments, operators, import files, import PJSON files, and more.

Simple Demo

{
    // strings
    helloText: 'hello world',
    MultiLineText: `
        Welcome
        to
        PowerJSON!
    `,

    // file and import
    myFile: new File('./file.txt'),
    importPJSONFile: new PJSON('./index2.pjson'),
    getFile: new GET('http://www.powerjson.org'),

    // operator
    tenDaySeconds: 60 * 60 * 24 * 10

    // here is the comment!
    /* comment2 */
}

Ecosystem

Gitter Gitter

Why not join our online PowerJSON Gitter Room?

Repository

PowerJSON released on Github / Gitee / NPM.

Compatibility

PowerJSON supports all browsers / js runtime that support ES6.

Browser:

  • IE >= 11
  • Edge All
  • Firefox >= 6
  • Chrome >= 21
  • Safari >= 7.1
  • Opera >= 15

Node.js:

  • Nodejs >= 6

Documentation

To check out live examples and docs, visit powerjson.org.

Changelog

Detailed changes for each release are documented in the release notes.

License

MIT

Copyright (c) 2019-present, Yingxuan (Bill) Dong

Comments ( 2 )

Sign in for post a comment

JavaScript
1
https://gitee.com/PowerJSON/PowerJSON.git
git@gitee.com:PowerJSON/PowerJSON.git
PowerJSON
PowerJSON
PowerJSON
master

Help Search