Please wait for the administrator to review and you will receive a system notification when the review is complete
PowerJSON 是由 JSON 改进的数据交换格式。
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.
{
// 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 */
}
Why not join our online PowerJSON Gitter Room?
PowerJSON released on Github / Gitee / NPM.
PowerJSON supports all browsers / js runtime that support ES6.
Browser:
Node.js:
To check out live examples and docs, visit powerjson.org.
Detailed changes for each release are documented in the release notes.
Copyright (c) 2019-present, Yingxuan (Bill) Dong