Comparing version 0.0.2 to 0.0.3
@@ -50,28 +50,28 @@ /** | ||
let jsonxString = `{ | ||
// keys are not necessary to be quoted | ||
name: "jsonx", | ||
/* This is also a comment. */ | ||
url: "http://jsonx.org", | ||
/* | ||
Here is some more comments | ||
which span across multi lines. | ||
*/ | ||
"languages-bindings": ["Javascript", "Golang",], | ||
/* | ||
Tailing comma is not a problem. | ||
Multiline text also works. | ||
*/ | ||
description: \`Multiline text is translated into an array | ||
of strings. JSONx makes JSON easier to use for | ||
configuration files.\`, | ||
}`; | ||
console.log(JSON.stringify(JSON.parse(jsonx.toJSON(jsonxString)), null, 2)); | ||
// let jsonxString = `{ | ||
// // keys are not necessary to be quoted | ||
// name: "jsonx", | ||
// | ||
// /* This is also a comment. */ | ||
// url: "http://jsonx.org", | ||
// | ||
// /* | ||
// Here is some more comments | ||
// which span across multi lines. | ||
// */ | ||
// "languages-bindings": ["Javascript", "Golang",], | ||
// | ||
// /* | ||
// Tailing comma is not a problem. | ||
// Multiline text also works. | ||
// */ | ||
// | ||
// description: \`Multiline text is translated into an array | ||
// of strings. JSONx makes JSON easier to use for | ||
// configuration files.\`, | ||
// }`; | ||
// | ||
// console.log(jsonx.toJSON(jsonxString)); | ||
}); | ||
})(); |
{ | ||
"name": "jsonx-js", | ||
"version": "0.0.2", | ||
"version": "0.0.3", | ||
"description": "JSONx javascript binding.", | ||
@@ -5,0 +5,0 @@ "main": "jsonx.js", |
@@ -64,3 +64,3 @@ # JSONx-js | ||
```html | ||
<script src="path/to/jsonx.js"> | ||
<script src="path/to/jsonx.js"></script> | ||
<script> | ||
@@ -67,0 +67,0 @@ var jsonxString = '...'; |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
6538
113