Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

jsonx-js

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

jsonx-js - npm Package Compare versions

Comparing version 0.0.2 to 0.0.3

48

jsonxSpec.js

@@ -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 = '...';

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc