# PowerJSON **Repository Path**: PowerJSON/PowerJSON ## Basic Information - **Project Name**: PowerJSON - **Description**: PowerJSON 是由 JSON 改进的数据交换格式。 - **Primary Language**: JavaScript - **License**: MIT - **Default Branch**: master - **Homepage**: https://www.powerjson.org/ - **GVP Project**: No ## Statistics - **Stars**: 24 - **Forks**: 3 - **Created**: 2019-10-15 - **Last Updated**: 2023-06-06 ## Categories & Tags **Categories**: json-tools **Tags**: None ## README

PowerJSON

:clap: Powerjson 是由 JSON 改进而成的数据交换格式,它将 JSON 支持了部分 JavaScript 语法,使其更加高效可用,并且解决了许多 JSON 历史遗留下来的问题。 它支持 **单引号字符串**, **多行字符串**, **注释**, **运算符**, **导入文件**, **导入其它 PJSON 文件** 等。
### Simple Demo ```javascript { // 字符串 helloText: 'hello world', MultiLineText: ` Welcome to PowerJSON! `, // 文件和导入 myFile: new File('./file.txt'), importPJSONFile: new PJSON('./index2.pjson'), getFile: new GET('http://cn.powerjson.org'), // 运算符 tenDaySeconds: 60 * 60 * 24 * 10 // 这里是注释! /* 注释2 */ } ``` ### 生态系统 #### 聊天室 [![Gitter](https://badges.gitter.im/powerjson-cn/community.svg)](https://gitter.im/powerjson-cn/community?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge) 为什么不加入我们的在线 PowerJSON CN [Gitter 聊天室](https://gitter.im/powerjson-cn/community?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge)? #### 仓库 PowerJSON 在 [Github](https://github.com/PowerJSON/PowerJSON) / [Gitee](https://gitee.com/PowerJSON/PowerJSON) / [NPM](https://www.npmjs.com/package/@powerjson/powerjson) 上托管仓库。 ### 兼容性 PowerJSON 支持所有兼容 [ES6](https://caniuse.com/#feat=es6) 的 **浏览器 / js 运行时**。 **浏览器:** - IE >= 11 - Edge All - Firefox >= 6 - Chrome >= 21 - Safari >= 7.1 - Opera >= 15 **Node.js:** - Nodejs >= 6 ### 文档 访问 [powerjson.org](http://cn.powerjson.org) 查看我们的在线实例和 [教程](http://cn.powerjson.org/)! ### 变更日志 每次发行版的细节和变更记录请访问 Github 上的 [发行日志](https://github.com/PowerJSON/PowerJSON/releases)。 ### 协议 [MIT](https://opensource.org/licenses/MIT) Copyright (c) 2019-present, Yingxuan (Bill) Dong pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy